In this video, learn about the ability of Translate Text API to break apart longer paragraphs into smaller sentences.
- [Instructor] Now, while we're doing all this translations,…you may have noticed that we're…passing them as a get request.…And, there is a finite length…to how big this request can be,…certainly it's not suitable for extremely large documents.…So, you probably want to break this sentence by sentence.…That's one way of solving this,…and another way of solving this…is being able to send a whole paragraph at once.…So, first let's see the ability for the translate text API…to break a longer text into smaller sentences.…
Let's see how that works.…So let's go down here and create a new function called…break sentences long text,string.…Const request options is equal to get request options,…and now I'll simply say request.get to…the config.speech.translateTextAPI.endPoint…break sentences, question mark,…text equals, I'll put a quote there.…
And I'll say encode URI component, because we are passing it…as a URL, so whatever input text was given to us,…plus what language are we working in?…Language, and I'll just go with English,…
- 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 Advanced
Creating Bots with the Microsoft Bot Framework, Part 1with Scott Peterson45m 41s Intermediate
Learning Microsoft Cognitive Services for Developerswith Sahil Malik1h 42m 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.