In this video, craft up business objects to represent the return objects to simplify your code.
- [Instructor] Now to simplify our code,…the first thing I'll do is define a new module…called business objects.…So remember there were two distinct operations here.…One was the process of enrolling a person's speech,…and the second was identifying the speech.…So both of them are going to return a json object,…let's call it enrollment status or identification status,…so I decided to call both of them request status,…and they will contain the following properties:…Status, Created Date, Last Action Date and Time,…and Processing Result.…
And Processing Result, as you can see over here,…well, it's got certain properties.…Now you can assume that the identification profile ID…will be present only in the identification request,…and the enrollment status will be present…only in enrollment status request.…So I have created a singular business object…to represent both of these operations.…So one is request status,…and the second is processing result.…And using the code pattern you see…from line seven to nine, the constructor,…
- 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.