A simple Voice AI Agent built using Python and Streamlit, powered by the Groq API. This application allows users to ask questions about people, software, organizations, and weather through a conversational interface, with support for voice-style interaction logic.
- ๐ง AI-powered question answering using Groq LLMs
- ๐ค Voice-style conversational agent interface
- ๐ฆ๏ธ Weather information queries
- ๐ค General knowledge about people and organizations
- โก Fast inference using Groq API
- ๐ฅ๏ธ Clean and interactive UI with Streamlit
- Python 3.9+
- Streamlit โ Frontend & UI
- Groq API โ Large Language Model inference
- Matplotlib / NumPy โ (if used for visualizations)
- Tkinter (optional) โ For additional UI logic (if applicable)
git clone https://github.com/your-username/voice-ai-agent.git
cd voice-ai-agentpython -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txt- Create an account at Groq
- Generate your Groq API Key
- Enter the API key in the Streamlit sidebar when the app starts
โ ๏ธ Keep your API key private. Do not hardcode it in public repositories.
streamlit run app.pyThe app will open in your browser (usually at http://localhost:8501).
voice-ai-agent/
โ
โโโ app.py # Main Streamlit application
โโโ requirements.txt # Python dependencies
โโโ README.md # Project documentation
โโโ assets/ # Images or icons (optional)
โโโ utils/ # Helper functions (if any)
- "Who is Donald Trump?"
- "What is the weather in New York?"
- "Explain what Streamlit is"
- "Tell me about Google"
- User enters a query (text/voice-style input)
- Streamlit sends the query to the Groq API
- Groq LLM processes the request
- The AI-generated response is displayed in the chat interface
- ๐ง Real-time speech-to-text (STT)
- ๐ Text-to-speech (TTS) output
- ๐ Live weather API integration
- ๐ง Memory-based conversations
- ๐ Deployment on Streamlit Cloud
This project is for educational and learning purposes. You may modify and use it freely.
Developed by: Shofi Ahmed Built with: Python, Streamlit & Groq API
โญ If you like this project, consider giving it a star on GitHub!