class SpeechSynthesisRequest
Class that defines the speech synthesis request. This class is in preview and is subject to change. Added in version 1.37.0.
Members
operator SPXREQUESTHANDLE
Syntax: public inline explicit operator SPXREQUESTHANDLE ( ) const;
Internal operator used to get underlying handle value.
Returns
A handle.
GetInputStream
Syntax: public inline InputStream & GetInputStream ( );
Gets the input stream for the speech synthesis request.
Returns
The input stream.
SetPitch
Syntax: public inline void SetPitch ( const std::string & pitch );
Sets the pitch of the synthesized speech.
Parameters
pitch
The pitch of the synthesized speech.
SetRate
Syntax: public inline void SetRate ( const std::string & rate );
Set the speaking rate.
Parameters
rate
The speaking rate.
SetVolume
Syntax: public inline void SetVolume ( const std::string & volume );
Set the speaking volume.
Parameters
volume
The speaking volume.
~SpeechSynthesisRequest
Syntax: public inline virtual ~SpeechSynthesisRequest ( );
Destructs the object.
NewTextStreamingRequest
Syntax: public inline static std::shared_ptr< SpeechSynthesisRequest > NewTextStreamingRequest ( );
Creates a speech synthesis request, with text streaming is enabled.
Returns
A shared pointer to the new speech synthesis request instance.