Tars is a voice-activated AI assistant that listens for the wake word "Hey Tars", responds to queries, opens applications, and searches the web. It uses Google Gemini API for AI responses and supports real-time interruption while speaking.
✅ Wake Word Detection → Always listening for "Hey Tars" on both cmd & streamlit app
✅ AI-Powered Answers → Uses Google Gemini API (Short & Concise)
✅ Open Applications → Chrome, Notepad, Calculator, Spotify (Customizable)
✅ Search the Web → Instantly Google search queries
✅ Error Handling → Automatically returns to wake-word listening
- Clone the Repository
sh git clone https://github.com/Manraj29/tars.git
- Install Dependencies
pip install -r requirements.txt
- Set Up Google Gemini API Key
GEMINI_API_KEY = "your_api_key_here"
- Run the python script
python tars.py
, if streamlitstreamlit run tarslit.py
Run the script, Then, say "Hey Tars" and:
- "Open Chrome" → Opens Google Chrome
- "Search for Python tutorials" → Opens Google search
- "Who is Elon Musk?" → Gets AI-generated response
Run the streamlit app, Then Interact with Tars through:
- Voice Commands: Say "Hey Tars" to activate, then:
- "Open Notepad"
- "Search for the latest tech news"
- "What is the weather like today?"
- "Tell me a joke"
- Text Commands: Type directly into the text box and click Send Command.
- Python 3.7+
- speechrecognition (for voice commands)
- google-generativeai (for AI responses)
- pyttsx3 (for text-to-speech)
- pyaudio (for microphone input)
- webbrowser (for Google search)
![]() |
![]() |
---|---|
![]() |
![]() |