This guide demonstrates how to build a government scheme awareness agent that helps citizens discover, understand, and learn how to apply for various government welfare schemes using LiveKit for real-time communication and Sarvam AI for speech processing. Ideal for government digital initiatives, NGOs, and citizen service centers.
A voice agent that can:
.env file with your API keyspython agent.py devpython agent.py consoleCreate a file named .env in your project folder and add your API keys:
Replace the values with your actual API keys.
Create scheme_awareness_agent.py:
In a new terminal, run:
For Hindi-speaking citizens:
For citizen service centers serving diverse populations:
When you need to process regional language input but generate English reports. Saaras v3 handles both transcription (same-language output) and translation (English output) via the mode parameter—use mode="translate" for speech-to-English.
Male (23): Shubh (default), Aditya, Rahul, Rohan, Amit, Dev, Ratan, Varun, Manan, Sumit, Kabir, Aayan, Ashutosh, Advait, Anand, Tarun, Sunny, Mani, Gokul, Vijay, Mohit, Rehan, Soham
Female (14): Ritu, Priya, Neha, Pooja, Simran, Kavya, Ishita, Shreya, Roopa, Tanya, Shruti, Suhani, Kavitha, Rupali
language="unknown" to serve citizens who speak different languagessimran for citizen-facing servicesAPI key errors: Check that all keys are in your .env file and the file is in the same directory as your script.
Module not found: Run the installation command again based on your operating system.
Poor transcription: Try language="unknown" for auto-detection, or specify the correct language code.
Happy Building!