How might I access the running transcript buffer f...
# ask-ai
f
How might I access the running transcript buffer from streaming STT?
t
Thanks for reaching out, Anish. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you access the running transcript buffer from streaming STT! Depending on your setup, here are some friendly pointers to guide you: • JavaScript/TypeScript Agents SDK: You can use the
currentTranscript
getter in the
AudioRecognition
class. This gives you a nice combination of both finalized and interim transcription results. Plus, subscribing to STT events lets you handle transcripts in real-time, which can be really handy. • Python Agents SDK: You might want to check out the session history or listen for real-time updates using event handlers like
on_conversation_item_added
or
on_user_input_transcribed
. Another option is to process the STT stream directly for both interim and final transcripts. • Frontend/Client SDK: Using
registerTextStreamHandler
is a great way to receive and manage transcription updates as they happen. If you'd like, I’m here to help with specific code examples or more detailed guidance tailored to your SDK or implementation. Just let me know what you’re working with, and we’ll figure it out together! Sources: examples/voice_agents/timed_agent_transcript.py | plugins/test/src/stt.ts | Session recording and transcripts | LiveKit Docs | main.py | Text and transcriptions | LiveKit Docs