1 00:00:00,640 --> 00:00:02,210 - In this video, we're going to register 2 00:00:02,210 --> 00:00:05,270 for the Speech to Text Service which, just as a reminder, 3 00:00:05,270 --> 00:00:08,326 is going to take an audio file representing speech 4 00:00:08,326 --> 00:00:12,762 and it's going to send that file over to the Watson server 5 00:00:12,762 --> 00:00:16,339 and the Speech to Text service will then analyze the file, 6 00:00:16,339 --> 00:00:21,339 transcribe it into text and send back a JavaScript object, 7 00:00:21,630 --> 00:00:22,680 notation object, 8 00:00:22,680 --> 00:00:26,050 from which we can pick off that transcription. 9 00:00:26,050 --> 00:00:28,460 The URL for the service is shown here 10 00:00:28,460 --> 00:00:31,210 and I'll go to the web browser in a moment to show you that. 11 00:00:31,210 --> 00:00:32,540 On that page, as you'll see, 12 00:00:32,540 --> 00:00:34,030 there's going to be a Create button 13 00:00:34,030 --> 00:00:35,530 which will set up the service 14 00:00:35,530 --> 00:00:37,597 and auto-generate the API key. 15 00:00:37,597 --> 00:00:40,820 When you're working with the light tier services, 16 00:00:40,820 --> 00:00:43,820 you can only set up one instance of the service 17 00:00:43,820 --> 00:00:46,103 so once you've done this the first time, 18 00:00:46,103 --> 00:00:48,831 I'll show you a different webpage where you can go 19 00:00:48,831 --> 00:00:51,792 to see the services you've already configured 20 00:00:51,792 --> 00:00:54,622 and access their service credentials as well, 21 00:00:54,622 --> 00:00:58,385 but separately we'll go to the page that it takes us to 22 00:00:58,385 --> 00:01:00,794 and we'll copy the API key, 23 00:01:00,794 --> 00:01:04,540 and you're going to want to put that specific API key 24 00:01:04,540 --> 00:01:07,293 into the variable called Speech to Text key 25 00:01:07,293 --> 00:01:12,293 inside the keys.py file in our ch13 examples folder. 26 00:01:13,684 --> 00:01:16,460 Let's switch over to a web browser 27 00:01:16,460 --> 00:01:19,040 and I've already brought up on the screen here 28 00:01:19,040 --> 00:01:21,333 the Watson services listing 29 00:01:21,333 --> 00:01:23,470 and if you scroll through this page 30 00:01:23,470 --> 00:01:26,250 you'll see boxes for each of the different services 31 00:01:26,250 --> 00:01:29,150 that we were talking about earlier in this lesson 32 00:01:29,150 --> 00:01:30,620 and some other ones as well. 33 00:01:30,620 --> 00:01:34,090 In particular, we're talking about Speech to Text 34 00:01:34,090 --> 00:01:36,210 at the moment, which you see right here, 35 00:01:36,210 --> 00:01:38,180 and if you click this box 36 00:01:38,180 --> 00:01:41,540 it's going to take you to a page that looks like this. 37 00:01:41,540 --> 00:01:43,525 Now, when you first get to this page, 38 00:01:43,525 --> 00:01:45,874 it is going to take a few moments 39 00:01:45,874 --> 00:01:48,744 to fill in the information up here. 40 00:01:48,744 --> 00:01:50,720 Basically, it's going to check 41 00:01:50,720 --> 00:01:53,270 where you're connecting to Watson from, 42 00:01:53,270 --> 00:01:56,930 and by the way you do have to be logged in for this purpose 43 00:01:56,930 --> 00:01:59,010 so you'll notice I am logged in 44 00:01:59,010 --> 00:02:01,057 to my Watson account at the moment, 45 00:02:01,057 --> 00:02:03,970 but it'll take a few moments to fill this in 46 00:02:03,970 --> 00:02:05,930 and eventually this Create button 47 00:02:05,930 --> 00:02:07,333 down in the bottom right corner 48 00:02:07,333 --> 00:02:10,760 will become active so that you can click it 49 00:02:10,760 --> 00:02:12,900 to create an instance of the service. 50 00:02:12,900 --> 00:02:14,640 So I'm gonna go ahead and click that right now, 51 00:02:14,640 --> 00:02:15,540 while I'm talking, 52 00:02:15,540 --> 00:02:18,760 and separately it shows you some other information here, 53 00:02:18,760 --> 00:02:22,710 talks about the light tier and the paid tiers 54 00:02:22,710 --> 00:02:25,114 and as you can see, once it's finished 55 00:02:25,114 --> 00:02:26,680 setting up the service, 56 00:02:26,680 --> 00:02:29,149 it automatically took me to a new page 57 00:02:29,149 --> 00:02:32,210 which actually has a nice getting started tutorial 58 00:02:32,210 --> 00:02:33,678 that talks about the service, 59 00:02:33,678 --> 00:02:36,663 but most importantly for what we need today 60 00:02:36,663 --> 00:02:40,300 is this Manage tab up in the upper left corner. 61 00:02:40,300 --> 00:02:44,120 This is where you're going to go to get your credentials 62 00:02:44,120 --> 00:02:46,880 and you'll notice there's a section called Credentials. 63 00:02:46,880 --> 00:02:48,830 You can download them if you would like, 64 00:02:48,830 --> 00:02:51,810 you can actually show them right here on the screen. 65 00:02:51,810 --> 00:02:53,220 I'm not going to show you mine, 66 00:02:53,220 --> 00:02:56,420 because again you shouldn't reveal your credentials 67 00:02:56,420 --> 00:02:57,480 to anybody else, 68 00:02:57,480 --> 00:02:59,730 but you notice there's a little Copy button 69 00:02:59,730 --> 00:03:00,660 over here on the right, 70 00:03:00,660 --> 00:03:05,249 so I can click that to copy the actual text of the API key 71 00:03:05,249 --> 00:03:09,860 and they also show you the default URL for the service 72 00:03:09,860 --> 00:03:14,130 but it turns out that the Watson Developer Cloud SDK 73 00:03:14,130 --> 00:03:17,800 already has that default URL built into it, 74 00:03:17,800 --> 00:03:20,040 so you actually don't need to copy that 75 00:03:20,040 --> 00:03:22,825 for the purpose of this demonstration. 76 00:03:22,825 --> 00:03:26,700 Once you've copied this API Key, again, 77 00:03:26,700 --> 00:03:27,880 just switching back over 78 00:03:27,880 --> 00:03:30,040 to my PowerPoint slide for a moment, 79 00:03:30,040 --> 00:03:33,340 you're going to want to open the keys.py file 80 00:03:33,340 --> 00:03:36,450 in the ch13 examples folder, 81 00:03:36,450 --> 00:03:39,220 and you're going to want to replace the contents 82 00:03:39,220 --> 00:03:44,220 of the string for speech to text key with this API Key 83 00:03:44,340 --> 00:03:46,693 that you just copied from the page. 84 00:03:47,650 --> 00:03:51,843 Now, separately, once you have that API Key set up, 85 00:03:51,843 --> 00:03:56,843 going back over to the Watson web browser for a moment, 86 00:03:57,400 --> 00:04:01,370 you can see any of the services you've set up previously 87 00:04:01,370 --> 00:04:04,410 at cloud.ibm.com/resources. 88 00:04:04,410 --> 00:04:06,740 So you see down here, on this page, 89 00:04:06,740 --> 00:04:09,900 I now have a Speech to Text service set up. 90 00:04:09,900 --> 00:04:13,760 It tells me that it is provisioned and ready for me to use, 91 00:04:13,760 --> 00:04:16,040 and this is also where you can go 92 00:04:16,040 --> 00:04:20,763 and come back to click here to bring back, if necessary 93 00:04:20,763 --> 00:04:25,560 the services page where you can see those credentials 94 00:04:25,560 --> 00:04:27,300 once again in the future. 95 00:04:27,300 --> 00:04:29,080 Maybe you're creating another app 96 00:04:29,080 --> 00:04:31,813 and you need to copy that API Key again.