can i change audio playback speed "playbackRate" i...
# ask-ai
r
can i change audio playback speed "playbackRate" in livekit frontend
t
Thanks for reaching out, Av. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Audio playback speed can definitely be adjusted in LiveKit, and I’m here to help you navigate how to do that based on your needs. When it comes to backend and agent-level settings, there are solid options like using TTS parameters or resampling audio that work really well. On the other hand, directly changing the
playbackRate
property in the frontend SDK isn’t clearly outlined in the documentation. If you’re aiming to make this adjustment on the frontend, you might want to consider some custom audio processing or lean on backend adjustments to achieve the best results. Please feel free to reach out if you'd like me to walk you through any of these options—I’m happy to support you every step of the way! Sources: Rime integration guide | LiveKit Docs | Rime integration guide | LiveKit Docs | plugins/openai/src/realtime/realtime_model.ts | Pipeline nodes and hooks | LiveKit Docs | Agent speech and audio | LiveKit Docs
r
ok tell me how to do it on TTS side
t
To adjust the playback speed on the TTS side, you can use the speed-related parameters that your TTS integration provides. Here are some examples to help you get started: • Hume: Use the
speed
parameter (for instance,
speed=1.5
to make it 50% faster). • Rime: Use the
speed_alpha
parameter (like
speed_alpha=0.9
for a slightly faster pace). • Inworld: Use the
speaking_rate
parameter (such as
speaking_rate=1.2
). • Google: Use the
speaking_rate
parameter (for example,
speaking_rate=1.2
). • Cartesia: Use the
speed
parameter (you can try
speed=1.2
or
speed='fast'
). Most TTS integrations also support dynamic updates through update_options(), which lets you change the speed while it's running. If you share which TTS provider you're using or your specific use case, I'd be happy to offer more personalized guidance! Sources: Hume TTS integration guide | LiveKit Docs | Rime integration guide | LiveKit Docs | Rime integration guide | LiveKit Docs | Inworld TTS integration guide | LiveKit Docs | Cartesia integration guide | LiveKit Docs
r
i use coqui TTS
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!