MCPcopy
hub / github.com/enricoros/big-AGI / _SpeexSpeakHandle

Interface _SpeexSpeakHandle

src/modules/speex/speex.client.ts:138–144  ·  view source on GitHub ↗

* Handle returned by speakTextWithHandle() for controlled playback. * Allows waiting for playback completion and stopping mid-playback.

Source from the content-addressed store, hash-verified

136 * Allows waiting for playback completion and stopping mid-playback.
137 */
138interface _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.

Callers 8

onAbortFunction · 0.65
_speakRawText_withHandleFunction · 0.65
speexSynthesize_RPCFunction · 0.65
#startCameraMethod · 0.65
#releaseStreamIfAnyMethod · 0.65
useSpeechRecognitionFunction · 0.65
startMethod · 0.65

Implementers 4

AudioRecorderEnginesrc/common/components/speechrecognitio
WebSpeechApiEnginesrc/common/components/speechrecognitio
AudioLivePlayersrc/common/util/audio/AudioLivePlayer.
AudioAutoPlayersrc/common/util/audio/AudioAutoPlayer.

Calls

no outgoing calls

Tested by

no test coverage detected