Can I write a custom update options and create a s...
# ask-ai
c
Can I write a custom update options and create a stt node instead of using default options?
t
Thanks for reaching out, Subham. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can write custom update options and create an STT node in LiveKit instead of sticking with the default options. LiveKit offers two great ways to customize your experience: • Custom STT Nodes: You have the flexibility to override the
stt_node()
method in a custom
Agent
subclass, giving you full control over the speech-to-text pipeline. This means you can add your own pre-processing, buffering, or even explore alternative STT strategies. For instance, you might preprocess audio frames or dynamically postprocess the transcription text to better suit your needs. • Dynamic Option Updates: Many STT plugins, like Deepgram and Gladia, come with an
update_options()
method. This handy feature lets you tweak STT settings on the fly—things like language, model, punctuation, and custom vocabulary—without having to recreate the STT instance every time. If you'd like, I’d be more than happy to walk you through specific examples or provide more detailed guidance on how to implement these methods. Just let me know! Sources: Pipeline nodes and hooks | LiveKit Docs | livekit-plugins/livekit-plugins-elevenlabs/livekit/plugins/elevenlabs/stt.p... | plugins/deepgram/src/stt.ts
c
I don't have the
update_options
option for sarvam or elevenlabs, how can i implement it for the same? Can I update the requirements directly during the call?
t
It looks like
update_options
isn’t available for Sarvam or ElevenLabs. Could you please share a bit more about the specific requirements or settings you’re hoping to update during the call? That way, I can offer more tailored guidance or suggest some helpful alternatives. I’m here to help!
c
I want to be able to change the language option for my stt
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!