DEV Community

Cover image for Trivya AI – Voice Assistant with Gemini Integration
Shalini Tiwari
Shalini Tiwari

Posted on

Trivya AI – Voice Assistant with Gemini Integration

GitHub “Finish-Up-A-Thon” Challenge Submission

This is a submission for the GitHub Finish-Up-A-Thon Challenge

Project Description:
Trivya AI is a Python-based voice assistant that combines speech recognition, text-to-speech, and Google Gemini AI to provide an interactive assistant experience.

The project supports two modes:

A terminal-based voice assistant that listens to voice commands and responds through speech.
A Streamlit-based web interface that allows users to interact through a browser.

Trivya AI can answer AI-powered questions, provide date and time information, open websites, tell jokes, and perform basic assistant tasks.

Demo
Demo Link: Trivya AI demo

The Comeback Story
This project originally started as a simple terminal-based voice assistant with predefined commands.

During the Finish-Up-A-Thon, I enhanced the project by:

  • Adding a Streamlit web interface for easier interaction
  • Integrating Google Gemini AI for answering open-ended questions
  • Creating a reusable AI helper module
  • Securing API keys using environment variables (.env)
  • Improving project structure and organization
  • Updating the README with screenshots, setup instructions, and usage examples
  • Enhancing the overall user experience and documentation

My Experience with GitHub Copilot
GitHub Copilot helped me speed up development while improving Trivya AI during the Finish-Up-A-Thon. It assisted with code suggestions, debugging, and exploring different implementation approaches while I worked on the project.

Copilot was particularly useful when refining the Streamlit interface, organizing parts of the codebase, and improving the overall project structure. It also helped me iterate faster by providing suggestions that I could review, modify, and integrate into the project.

The combination of my own development process and Copilot's assistance allowed me to focus more on enhancing the user experience, integrating AI capabilities, and improving the documentation of the project.

Top comments (0)