SpeechSynthesisRequest class
代表支援文字串流的語音合成請求。 注意:此類別處於預覽狀態,未來版本可能會有所變更。
建構函式
| Speech |
建立語音合成請求。 |
屬性
| custom |
設定自訂詞彙 URL。 |
| input |
取得撰寫文字的輸入串流。 |
| input |
取得這個請求的輸入型態。 |
| pitch | 設定聲音的音調。 |
| prefer |
設定語音的首選地點。 |
| properties | 取得此請求的屬性收集。 |
| rate | 設定聲音的發言速率。 |
| style | 設定聲音風格。 |
| temperature | 設定聲音合成的溫度。 |
| volume | 設定聲音的音量。 |
建構函式詳細資料
SpeechSynthesisRequest(SpeechSynthesisRequestInputType)
建立語音合成請求。
new SpeechSynthesisRequest(inputType: SpeechSynthesisRequestInputType)
參數
- inputType
- SpeechSynthesisRequestInputType
語音合成請求的輸入類型。
屬性詳細資料
customLexiconUrl
設定自訂詞彙 URL。
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