Write code and explore the process of submitting text and getting an MP3 file returned as speech.
- [Narrator] Now once you get the languages…that the translateTextAPI supports for speaking,…let's go ahead and comment that out.…Now let's actually write a function…that will speak text in whatever language you ask.…function speakText…function speakText…inputText as string…inputText as string…and inputLanguage as string.…and inputLanguage as string.…So again as before,…So again as before,…let's get the requestOptions…and craft a parameters,…const params…const params…text shall be, put this in quotes,…text shall be, put this in quotes,…not necessary but it's clean coding,…inputText…inputText…What language are we working in?…inputLanguage…inputLanguage…format - so what format would we like the output in?…I will say, audio/mp3.…
Now let's craft up a URI to make a get request to.…Const uri equals config.speech.translateTextAPI.endpoint…Const uri equals config.speech.translateTextAPI.endpoint…plus /Speak? querystring.stringify…plus /Speak? querystring.stringify…these params that we just created a moment ago.…Let's put this on a new line…
Author
Released
4/13/2018- Text Analytics API
- Detecting language using text analytics
- Detecting key phrases and sentiment
- Bing Spell Check API
- Translator Text API
- Writing code for translating between languages
- Performing text-to-speech
- Language Understanding (LUIS)
- Writing code to create a LUIS app
Skill Level Advanced
Duration
Views
Related Courses
-
Creating Bots with the Microsoft Bot Framework, Part 1
with Scott Peterson45m 41s Intermediate -
Learning Microsoft Cognitive Services for Developers
with Sahil Malik1h 42m Intermediate
-
Introduction
-
Welcome1m 30s
-
What you should know1m 36s
-
-
1. The Basics
-
Introduction3m 4s
-
Set up a Node.js project4m 28s
-
-
2. Text Analytics API
-
Set up your Node.js project1m 41s
-
Detect key phrases3m 32s
-
Detect sentiment3m 36s
-
-
3. Bing Spell Check API
-
4. Translator Text API
-
Set up the project1m 37s
-
Get language names5m 4s
-
Get languages for Speak1m 52s
-
Performing text-to-speech3m 37s
-
-
5. LUIS
-
LUIS basics5m 33s
-
Create a new LUIS app3m 41s
-
Call the LUIS app from code4m 20s
-
Delete the LUIS app1m 34s
-
-
6. LUIS Authoring APIs
-
Creating business objects3m 20s
-
Write code to add utterances5m 10s
-
Conclusion
-
Next steps1m 7s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Performing text-to-speech