SpeechSynthesisRequestInputStream class
Represents an input stream for speech synthesis request text streaming. Note: This class is in preview and may be subject to change in future versions.
Constructors
| Speech |
Constructor for internal use. |
Properties
| is |
Gets whether the input stream is closed. |
Methods
| close() | Closes the input stream, signaling that no more text will be written. |
| write(string) | Writes the specified text to the input stream. |
Constructor Details
SpeechSynthesisRequestInputStream(ISpeechSynthesisRequestInputStreamHost)
Constructor for internal use.
new SpeechSynthesisRequestInputStream(parent: ISpeechSynthesisRequestInputStreamHost)
Parameters
- parent
-
ISpeechSynthesisRequestInputStreamHost
The parent SpeechSynthesisRequest.
Property Details
isClosed
Gets whether the input stream is closed.
boolean isClosed
Property Value
boolean
Method Details
close()
Closes the input stream, signaling that no more text will be written.
function close()
write(string)
Writes the specified text to the input stream.
function write(text: string)
Parameters
- text
-
string
The text to be written to the input stream.