你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

SpeechSynthesisRequest class

表示支持文本流的语音合成请求。 注意:此类以预览版提供,将来的版本可能会更改。 语音合成请求

构造函数

SpeechSynthesisRequest(SpeechSynthesisRequestInputType)

创建语音合成请求。

属性

customLexiconUrl

设置自定义词汇网址。

inputStream

获取写文本的输入流。

inputType

获取该请求的输入类型。

pitch

设定声音的音调。

preferLocales

设置语音的首选位置。

properties

获取该请求的属性收集。

rate

设定声音的发言速率。

style

定下声音风格。

temperature

设定人声合成的温度。

volume

用来调节声音的音量。

构造函数详细信息

SpeechSynthesisRequest(SpeechSynthesisRequestInputType)

创建语音合成请求。

new SpeechSynthesisRequest(inputType: SpeechSynthesisRequestInputType)

参数

inputType
SpeechSynthesisRequestInputType

语音合成请求的输入类型。

属性详细信息

customLexiconUrl

设置自定义词汇网址。

void customLexiconUrl

属性值

void

inputStream

获取写文本的输入流。

SpeechSynthesisRequestInputStream inputStream

属性值

inputType

获取该请求的输入类型。

SpeechSynthesisRequestInputType inputType

属性值

pitch

设定声音的音调。

void pitch

属性值

void

preferLocales

设置语音的首选位置。

void preferLocales

属性值

void

properties

获取该请求的属性收集。

PropertyCollection properties

属性值

rate

设定声音的发言速率。

void rate

属性值

void

style

定下声音风格。

void style

属性值

void

temperature

设定人声合成的温度。

void temperature

属性值

void

volume

用来调节声音的音量。

void volume

属性值

void