AT&T API Platform SDK for Microsoft®  2.3.3
Wrapper classes that allow developers to build robust applications using .NET
 All Classes Namespaces Functions Enumerations Properties
SpeechToTextCustom Methods

Classes

class  ATT_MSSDK.RequestFactory
 The RequestFactory manages the connections and calls to the AT&T API Platform. More...

Functions

SpeechResponse ATT_MSSDK.RequestFactory.SpeechToTextCustom (string audioFilePath, string dictionaryFilePath, string grammarFilePath, XSpeechCustomContext speechCustomContext, string xArgs=null, string audioContentType=null)

Function Documentation

SpeechResponse ATT_MSSDK.RequestFactory.SpeechToTextCustom ( string  audioFilePath,
string  dictionaryFilePath,
string  grammarFilePath,
XSpeechCustomContext  speechCustomContext,
string  xArgs = null,
string  audioContentType = null 
)

This method converts spoken audio to text. Optional inline hints and inline grammar may be provided by the developer to get more accurate results with a known data set.

Parameters:
audioFilePathAudio file path
dictionaryFilePathInline hint file path
grammarFilePathInline grammar file path
speechCustomContextXSpeechCustomContext
xArgsString having name/value pairs separated by comma, used to populate X-Arg header field is a meta parameter
audioContentTypeSpecifies the content type of the audio submitted.
Returns:
ATT_MSSDK.Speechv3.SpeechResponse An Speech response object containing the results.
Exceptions:
ArgumentExceptionThrown if an argument is invalid.
InvalidScopeExceptionThrown if the Request Factory scope does not include SMS.
InvalidResponseExceptionThrown if the server returns an error or there is a connection failure.