In this video, learn about being able to translate larger documents using the TranslateArray method.
- [Instructor] Now breaking apart sentences…is a useful function anyway.…Certainly you can use it with translations,…but you can use it in other scenarios as well.…But let me show you another way of doing translations,…where you have larger documents…that you want to translate in one go.…Not sentence by sentence,…and not by passing it as query string as you saw up here,…but perhaps as the body of a post message, let's see how.…That function is called translateArray.…
TranslateArray, let's define a function like that.…As usual, I'm going to create…const requestOptions will be getRequestOptions,…but I'm going to add a header this time,…requestOptions.headers.…Headers would be Content-Type shall be text/xml.…Now is where the interesting part comes in…is where I get to specify wherever I wish to have translated…as the body of the message.…
The body of the request has to follow a certain format…that looks like this.…Now, again, I'm using that backtick operator…to easily able to write lots of XML within my code.…But, basically, what I'm doing over here…
- 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.