* Handle returned by speakTextWithHandle() for controlled playback. * Allows waiting for playback completion and stopping mid-playback.
| 136 | * Allows waiting for playback completion and stopping mid-playback. |
| 137 | */ |
| 138 | interface _SpeexSpeakHandle { |
| 139 | readonly synthesisComplete: Promise<SpeexSynthesizeResult>; |
| 140 | readonly playbackComplete: Promise<boolean>; |
| 141 | |
| 142 | /** Stops both synthesis and playback immediately */ |
| 143 | stop(): void; |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * Speak text with a handle for controlled playback. |
no outgoing calls
no test coverage detected