![]() |
AT&T API Platform SDK for Microsoft®
2.3.3
Wrapper classes that allow developers to build robust applications using .NET
|
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. |
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.
textToConvert | Text to be converted to speech audio. Must be of type specified in the Content-Type header. |
contentType | Must be defined as one of the following values: text/plain and application/ssml+xml |
contentLanguage | May be defined as one of the following values: ‘en-US’ – US English ‘es-US’ – US Spanish Default value is ‘en-US’. |
returnAudioFormat | Determines 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. |
xArgs | A meta parameter to define multiple parameters within a single HTTP header. |
ArgumentException | Thrown if an argument is invalid. |
InvalidScopeException | Thrown if the Request Factory scope does not include TTS. |
InvalidResponseException | Thrown if the server returns an error or there is a connection failure. |