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
Text To Speech Methods

Classes

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

Functions

TextToSpeechResponse ATT_MSSDK.RequestFactory.TextToSpeech (string textToConvert, string contentType="text/plain", string contentLanguage="en-US", string returnAudioFormat="audio/amr-wb", string xArgs=null)
 This method converts text to synthesized voice.

Function Documentation

TextToSpeechResponse ATT_MSSDK.RequestFactory.TextToSpeech ( string  textToConvert,
string  contentType = "text/plain",
string  contentLanguage = "en-US",
string  returnAudioFormat = "audio/amr-wb",
string  xArgs = null 
)

This method converts text to synthesized voice.

Parameters:
textToConvertText to be converted to speech audio. Must be of type specified in the Content-Type header.
contentTypeMust be defined as one of the following values: text/plain and application/ssml+xml
contentLanguageMay be defined as one of the following values: ‘en-US’ – US English ‘es-US’ – US Spanish Default value is ‘en-US’.
returnAudioFormatDetermines the format of the body of the response. Valid values are: audio/amr audio/amr-wb audio/x-wav The default format is audio/amr-wb.
xArgsA meta parameter to define multiple parameters within a single HTTP header.
Returns:
ATT_MSSDK.TextToSpeechv1.TextToSpeechResponse object containing the text to speech response.
Exceptions:
ArgumentExceptionThrown if an argument is invalid.
InvalidScopeExceptionThrown if the Request Factory scope does not include TTS.
InvalidResponseExceptionThrown if the server returns an error or there is a connection failure.