aloof-forest-57428
11/14/2025, 6:06 AMtall-airline-16756
11/14/2025, 6:06 AMtall-airline-16756
11/14/2025, 6:07 AMAgentSession with Sarvam STT by initializing it and providing your SARVAM_API_KEY. This step connects you to the service smoothly.
2. Next, listen for the user_input_transcribed event. This event gives you important transcription details like transcript, language, and whether the transcription is final with is_final.
3. Then, integrate your database to store this transcription data. You might find libraries like asyncpg for PostgreSQL or aiosqlite for SQLite really helpful here.
4. To keep things clean, make sure to save only the final transcriptions by checking the is_final property—this way, you avoid any duplicate entries.
If you'd like, I can share a detailed code example or help you with the database integration. Just let me know which database you're using, and I'll be happy to guide you step-by-step!
Sources: Sarvam STT plugin guide | LiveKit Docs | Events and error handling | LiveKit docs | Job lifecycle | LiveKit Docs | complex-agents/note-taking-assistant/agent.py