mp.tasks.audio.TtsStream

Bidirectional streaming synthesis session supporting push_text().

Methods

cancel

View source

Cancels this stream immediately.

close

View source

Releases native stream resources.

finish_input

View source

Marks the end of incremental text input and flushes clauses.

push_text

View source

Appends an incremental text fragment to the stream.

__enter__

View source

__exit__

View source

__iter__

View source