Skip to content

Voice AI Agent built with Python and Streamlit, powered by the Groq API. Supports conversational queries about people, organizations, software, and real-time weather through an interactive chat interface.

Notifications You must be signed in to change notification settings

shofiahmed69/AI_Agent_by_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ™๏ธ Voice AI Agent (Streamlit + Groq API)

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.


๐Ÿš€ Features

  • ๐Ÿง  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

๐Ÿ› ๏ธ Tech Stack

  • 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)

๐Ÿ“ธ Application Preview

Screenshot 2026-01-16 001001

๐Ÿ“ฆ Installation

1๏ธโƒฃ Clone the Repository

git clone https://github.com/your-username/voice-ai-agent.git
cd voice-ai-agent

2๏ธโƒฃ Create a Virtual Environment (Recommended)

python -m venv venv
source venv/bin/activate   # On Windows: venv\Scripts\activate

3๏ธโƒฃ Install Dependencies

pip install -r requirements.txt

๐Ÿ”‘ Groq API Configuration

  1. Create an account at Groq
  2. Generate your Groq API Key
  3. Enter the API key in the Streamlit sidebar when the app starts

โš ๏ธ Keep your API key private. Do not hardcode it in public repositories.


โ–ถ๏ธ Run the Application

streamlit run app.py

The app will open in your browser (usually at http://localhost:8501).


๐Ÿ“‚ Project Structure

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)

๐Ÿ’ฌ Example Queries

  • "Who is Donald Trump?"
  • "What is the weather in New York?"
  • "Explain what Streamlit is"
  • "Tell me about Google"

๐Ÿง  How It Works

  1. User enters a query (text/voice-style input)
  2. Streamlit sends the query to the Groq API
  3. Groq LLM processes the request
  4. The AI-generated response is displayed in the chat interface

๐Ÿ”ฎ Future Improvements

  • ๐ŸŽง Real-time speech-to-text (STT)
  • ๐Ÿ”Š Text-to-speech (TTS) output
  • ๐ŸŒ Live weather API integration
  • ๐Ÿง  Memory-based conversations
  • ๐Ÿš€ Deployment on Streamlit Cloud

๐Ÿ“œ License

This project is for educational and learning purposes. You may modify and use it freely.


๐Ÿ‘จโ€๐Ÿ’ป Author

Developed by: Shofi Ahmed Built with: Python, Streamlit & Groq API


โญ If you like this project, consider giving it a star on GitHub!

About

Voice AI Agent built with Python and Streamlit, powered by the Groq API. Supports conversational queries about people, organizations, software, and real-time weather through an interactive chat interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages