steep-balloon-41261
02/16/2025, 5:17 PMgray-monkey-83525
02/16/2025, 5:17 PMSynthesizedAudio
which expects audio frames in a format like PCM, not MP3.
To build a custom TTS plugin for LiveKit, you can subclass the agents.tts.TTS
class. This involves implementing the synthesize
method to convert text to audio frames that LiveKit can handle. You should ensure that the audio is in a compatible format, such as PCM, and use the ChunkedStream
or SynthesizeStream
to manage the audio data. You can refer to existing plugins like ElevenLabs for structure and implementation details.
Would you like more detailed guidance on implementing this?
Sources:
- ElevenLabs 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.