SpeechSynthesisRequest class
表示支持文本流的语音合成请求。 注意:此类以预览版提供,将来的版本可能会更改。 语音合成请求
构造函数
| Speech |
创建语音合成请求。 |
属性
| custom |
设置自定义词汇网址。 |
| input |
获取写文本的输入流。 |
| input |
获取该请求的输入类型。 |
| pitch | 设定声音的音调。 |
| prefer |
设置语音的首选位置。 |
| properties | 获取该请求的属性收集。 |
| rate | 设定声音的发言速率。 |
| style | 定下声音风格。 |
| temperature | 设定人声合成的温度。 |
| volume | 用来调节声音的音量。 |
构造函数详细信息
SpeechSynthesisRequest(SpeechSynthesisRequestInputType)
创建语音合成请求。
new SpeechSynthesisRequest(inputType: SpeechSynthesisRequestInputType)
参数
- inputType
- SpeechSynthesisRequestInputType
语音合成请求的输入类型。
属性详细信息
customLexiconUrl
设置自定义词汇网址。
void customLexiconUrl
属性值
void
inputStream
inputType
pitch
设定声音的音调。
void pitch
属性值
void
preferLocales
设置语音的首选位置。
void preferLocales
属性值
void
properties
rate
设定声音的发言速率。
void rate
属性值
void
style
定下声音风格。
void style
属性值
void
temperature
设定人声合成的温度。
void temperature
属性值
void
volume
用来调节声音的音量。
void volume
属性值
void