SpeechSynthesisRequestInputStream class

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

屬性

isClosed

讀取輸入串流是否封閉。

方法

close()

關閉輸入串流,表示不會再寫入文字。

write(string)

將指定的文字寫入輸入串流。

建構函式詳細資料

SpeechSynthesisRequestInputStream(ISpeechSynthesisRequestInputStreamHost)

內部使用的建構器。

new SpeechSynthesisRequestInputStream(parent: ISpeechSynthesisRequestInputStreamHost)

參數

parent

ISpeechSynthesisRequestInputStreamHost

父版 SpeechSynthesisRequest。

屬性詳細資料

isClosed

讀取輸入串流是否封閉。

boolean isClosed

屬性值

boolean

方法詳細資料

close()

關閉輸入串流,表示不會再寫入文字。

function close()

write(string)

將指定的文字寫入輸入串流。

function write(text: string)

參數

text

string

要寫入輸入串流的文字。