Implements
TTSRequestInterface
Constructor
Parameters
request (TTSRequestInterface)
The TTS request to wrap.
Returns
TTSRequest
Overrides: AbstractApiDataType.constructor
Properties
contentType
stream (optional)
text (optional)
voice (optional)
Methods
getText
Returns
string - The text content or undefined
getVoice
Returns
VoiceInterface - The voice configuration or undefined
hasStreamContent
Returns
boolean - True if the request contains stream content
hasTextContent
Returns
boolean - True if the request contains text content
withStream
Static
Parameters
stream (any)
The stream content to synthesize
voice (VoiceInterface) (optional)
Optional voice configuration
Returns
TTSRequest - A new TTSRequest instance
withText
Static
Parameters
text (string)
The text content to synthesize
voice (VoiceInterface) (optional)
Optional voice configuration
Returns
TTSRequest - A new TTSRequest instance