Set the callback for when the utterance finishes speaking
Parameters
callback: ()=>void
Returns void
onstart
setonstart(callback:()=>void):void
Set the callback for when the utterance starts speaking
Parameters
callback: ()=>void
Returns void
Methods
start
start():Promise<void>
Start speaking the utterance by fetching audio from ElevenLabs and playing it.
If normalizeVolume is enabled, the audio will be processed to normalize its volume.
An utterance implementation that uses the ElevenLabs API to synthesize speech.