SpeechSynthesisRequestInputStream class
Rappresenta un flusso di input per lo streaming di testo su richiesta di sintesi vocale. Nota: questa classe è in anteprima e potrebbe essere soggetta a modifiche nelle versioni future.
Costruttori
| Speech |
Costruttore per uso interno. |
Proprietà
| is |
Ottiene se il flusso di ingresso è chiuso. |
Metodi
| close() | Chiude il flusso di input, segnalando che non verrà scritto più testo. |
| write(string) | Scrive il testo specificato nel flusso di input. |
Dettagli costruttore
SpeechSynthesisRequestInputStream(ISpeechSynthesisRequestInputStreamHost)
Costruttore per uso interno.
new SpeechSynthesisRequestInputStream(parent: ISpeechSynthesisRequestInputStreamHost)
Parametri
- parent
-
ISpeechSynthesisRequestInputStreamHost
La richiesta di Sintesi del Parlato principale.
Dettagli proprietà
isClosed
Ottiene se il flusso di ingresso è chiuso.
boolean isClosed
Valore della proprietà
boolean
Dettagli metodo
close()
Chiude il flusso di input, segnalando che non verrà scritto più testo.
function close()
write(string)
Scrive il testo specificato nel flusso di input.
function write(text: string)
Parametri
- text
-
string
Il testo da scrivere nel flusso di input.