![]() |
AT&T API Platform SDK for Microsoft®
2.3.3
Wrapper classes that allow developers to build robust applications using .NET
|
This cookbook shows you how to develop a Custom Speech Service application using the Platform SDK for Microsoft.
The Platform SDK for Microsoft provides the following methods:
To use these methods in an application, perform the following steps:
To convert the spoken audio to text, invoke the ATT_MSSDK.RequestFactory.SpeechToTextCustom method using the RequestFactory instance by passing an audio file location and the context to be applied for Speech to Text conversion along with optional dictionary and grammar file paths as shown in the following code example.
// Path of the audio file to convert to text string fileToConvert = "xxxxxxxxx\\xxxxxxxx\\xxxxx"; string xArgs = "xxxxxxxx"; // example ClientApp=Test string audioContentType = "xxxxxxx"; // example "audio/wav"; SpeechResponse response = this.requestFactory.SpeechToTextCustom(fileToConvert, dictionaryFile, grammarFile, XSpeechContext.GenericHints);