SpeechSynthesisRequest class
Represents a speech synthesis request with support for text streaming. Note: This class is in preview and may be subject to change in future versions.
Constructors
| Speech |
Creates a speech synthesis request. |
Properties
| custom |
Sets the custom lexicon URL. |
| input |
Gets the input stream for writing text pieces. |
| input |
Gets the input type of this request. |
| pitch | Sets the pitch of the voice. |
| prefer |
Sets the preferred locales for the voice. |
| properties | Gets the properties collection for this request. |
| rate | Sets the speaking rate of the voice. |
| style | Sets the style of the voice. |
| temperature | Sets the temperature of the voice synthesis. |
| volume | Sets the volume of the voice. |
Constructor Details
SpeechSynthesisRequest(SpeechSynthesisRequestInputType)
Creates a speech synthesis request.
new SpeechSynthesisRequest(inputType: SpeechSynthesisRequestInputType)
Parameters
- inputType
- SpeechSynthesisRequestInputType
The input type for the speech synthesis request.
Property Details
customLexiconUrl
Sets the custom lexicon URL.
void customLexiconUrl
Property Value
void
inputStream
Gets the input stream for writing text pieces.
SpeechSynthesisRequestInputStream inputStream
Property Value
inputType
Gets the input type of this request.
SpeechSynthesisRequestInputType inputType
Property Value
pitch
Sets the pitch of the voice.
void pitch
Property Value
void
preferLocales
Sets the preferred locales for the voice.
void preferLocales
Property Value
void
properties
Gets the properties collection for this request.
PropertyCollection properties
Property Value
rate
Sets the speaking rate of the voice.
void rate
Property Value
void
style
Sets the style of the voice.
void style
Property Value
void
temperature
Sets the temperature of the voice synthesis.
void temperature
Property Value
void
volume
Sets the volume of the voice.
void volume
Property Value
void