SpeechSynthesisRequest class

代表支援文字串流的語音合成請求。 注意:此類別處於預覽狀態,未來版本可能會有所變更。

建構函式

SpeechSynthesisRequest(SpeechSynthesisRequestInputType)

建立語音合成請求。

屬性

customLexiconUrl

設定自訂詞彙 URL。

inputStream

取得撰寫文字的輸入串流。

inputType

取得這個請求的輸入型態。

pitch

設定聲音的音調。

preferLocales

設定語音的首選地點。

properties

取得此請求的屬性收集。

rate

設定聲音的發言速率。

style

設定聲音風格。

temperature

設定聲音合成的溫度。

volume

設定聲音的音量。

建構函式詳細資料

SpeechSynthesisRequest(SpeechSynthesisRequestInputType)

建立語音合成請求。

new SpeechSynthesisRequest(inputType: SpeechSynthesisRequestInputType)

參數

inputType
SpeechSynthesisRequestInputType

語音合成請求的輸入類型。

屬性詳細資料

customLexiconUrl

設定自訂詞彙 URL。

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