1 00:00:01,050 --> 00:00:02,500 - [Instructor] Next up we're going to register 2 00:00:02,500 --> 00:00:05,170 for the Watson text to speech service 3 00:00:05,170 --> 00:00:08,670 which is going to take text that we would like to speak 4 00:00:08,670 --> 00:00:12,510 and turn it into audio that we can actually play back 5 00:00:12,510 --> 00:00:13,820 as part of our app. 6 00:00:13,820 --> 00:00:17,020 So this is the URL for the text to speech service 7 00:00:17,020 --> 00:00:19,800 and the process that we just did in the preceding video 8 00:00:19,800 --> 00:00:23,190 is the same thing that we're going to do here as well. 9 00:00:23,190 --> 00:00:26,130 So let me switch over to my web browser once again. 10 00:00:26,130 --> 00:00:30,030 I've already opened up the text to speech page 11 00:00:30,030 --> 00:00:33,020 in my web browser but again if you want, 12 00:00:33,020 --> 00:00:35,720 you can go to the main services listing, 13 00:00:35,720 --> 00:00:39,170 click text to speech in the main services listing 14 00:00:39,170 --> 00:00:41,650 and then you'll be brought to this page. 15 00:00:41,650 --> 00:00:44,190 Now once again when you first click through here, 16 00:00:44,190 --> 00:00:45,640 this will take a few moments 17 00:00:45,640 --> 00:00:48,360 to locate where you are in the world 18 00:00:48,360 --> 00:00:50,460 and configure the service 19 00:00:50,460 --> 00:00:54,180 for the purpose of the closest location to you. 20 00:00:54,180 --> 00:00:57,320 And then separately, again you'll click create 21 00:00:57,320 --> 00:01:00,000 and it will go ahead and provision that for you. 22 00:01:00,000 --> 00:01:03,040 Now something I forgot to mention in the preceding video 23 00:01:03,040 --> 00:01:06,400 is that depending on where you are in the world, 24 00:01:06,400 --> 00:01:08,320 whether you need an API key 25 00:01:08,320 --> 00:01:11,430 or a username and password may be different. 26 00:01:11,430 --> 00:01:14,620 So I'm showing you the current setup 27 00:01:14,620 --> 00:01:16,530 here in the United States. 28 00:01:16,530 --> 00:01:18,800 But if you go to the page 29 00:01:18,800 --> 00:01:22,540 and after having created your credentials go to manage 30 00:01:22,540 --> 00:01:25,570 and then you see username and password down here, 31 00:01:25,570 --> 00:01:29,340 then what you're going to need to do is modify our code 32 00:01:29,340 --> 00:01:33,160 to use the username and password rather than the API key. 33 00:01:33,160 --> 00:01:35,710 Now at the time that we first set all this up, 34 00:01:35,710 --> 00:01:38,510 they were still in the process of migrating away 35 00:01:38,510 --> 00:01:41,720 from usernames and passwords to API keys. 36 00:01:41,720 --> 00:01:43,840 My guess is that worldwide by now 37 00:01:43,840 --> 00:01:46,000 they probably have updated everything 38 00:01:46,000 --> 00:01:48,590 but I just wanna make you aware of that. 39 00:01:48,590 --> 00:01:51,630 So again we've clicked manage in the upper left corner. 40 00:01:51,630 --> 00:01:54,640 We have our configured text to speech service 41 00:01:54,640 --> 00:01:57,390 and here's our API key which we can copy 42 00:01:57,390 --> 00:01:59,820 by clicking this icon over on the right side. 43 00:01:59,820 --> 00:02:02,270 And once again just as a reminder, 44 00:02:02,270 --> 00:02:05,530 you're going to want to go into that keys.py file 45 00:02:05,530 --> 00:02:09,560 and locate the text_to_speech_key variable 46 00:02:09,560 --> 00:02:14,000 and replace the contents of its string with that API key, 47 00:02:14,000 --> 00:02:16,820 making sure that there's no extra spaces 48 00:02:16,820 --> 00:02:21,013 on either side of the long key that you paste in.