Hi all! Will we get ulaw support in the Elevenlabs...
# agents
a
Hi all! Will we get ulaw support in the Elevenlabs TTS plugin in the Agents framework? IMO really holding back telephony adoption. https://github.com/livekit/agents/pull/1108
@refined-appointment-81829 @dry-elephant-14928 @adamant-microphone-92965
r
Sorry, I do not understand what issue it is causing you and why it is hold you back. Can you explain your use case and why it depends on a specific companding style?
a
ulaw_8000 is popular with VoIP and telephone providers. My understnading is that if we stream PCM from Elevenlabs and then send it to Twilio that expects a ulaw, there is some internal transcoding happening during streaming, which increases latency. Please let me know if I'm misunderstanding!
r
Our SIP service supports u-law or a-law. You can us any TTS you want.
a
But the agents framework doesn't allow using ulaw for the ElevenLabs provider: https://github.com/livekit/agents/blob/d19519d602eaae8f212d4f93252c05792b7b3a66/li[…]livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/models.py The pull request to add it was marked as closed and that this was by design: https://github.com/livekit/agents/pull/1108
r
You do not need ulaw in the agents framework. It all gets converted to opus.
a
I see, thanks.