In this video, write code for performing language translations using the Translate Text API.
- [Instructor] So at this point we've seen the capability,…of being able to get the various languages…that the translate text API supports,…and being able to get friendly names,…or full names for the languages,…in whatever locale you wish.…Now let's see some other capabilities…of the translate text API…namely,…actually being able to translate text…between different languages.…So let's go ahead and write that function.…Translate,…input text,…string,…so whatever text you wish to have translated…in the from language,…and to whatever languages you are translating to.…
Doing this translation is actually quite simple.…You simply do this:…const requestOptions…is equal to get request options…this is the helper function that we did earlier,…and I'm going to say const params,…equals from…this adjacent object that I'm crafting,…to so this is the from and to languages,…and text is the input text that has been specified to me…I'm going to include another import up here…which will be import * as querystring…from querystring.…
So find this query string module useful…
- Using the Translate Text API
- Getting supported languages
- Writing code to translate between languages
- Performing text to speech
- Setting up speech to text
- Writing code for speaker identification
Skill Level Intermediate
Microsoft Cognitive Services for Developers: 1 Visionwith Sahil Malik2h 35m Intermediate
Learning Microsoft Cognitive Services for Developerswith Sahil Malik1h 42m Intermediate
Creating Bots with the Microsoft Bot Framework, Part 1with Scott Peterson45m 41s Intermediate
1. The Basics
2. Translation Text API
3. Bing Speech API
4. Speaker Recognition API
Next steps1m 9s
- 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.Cancel
Take 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.