Heads up!
siri-voice-llama3
Siri Voice LLAMA-3 š§āāļøšŖ
š Check Out My Blog Post on this Project!
I have a complete blog post explaining the project here.
š Overview
The AI Assistant Automation is a Python application that uses Llama3, gTTS, OpenAI, Groq, and Faster-Whisper to create an intelligent assistant similar to Siri, with integrated image recognition support. This project allows users to interact with the assistant through voice commands and receive responses in audio format.
š Features
- Voice Interaction: Communicate with the assistant using voice prompts.
- Audio Response: The assistant responds with audio outputs generated by gTTS/OpenAI/pyttsx3.
- Image Recognition: Analyze and respond to images using advanced recognition techniques.
- Chat History Logging: Maintain a log of user interactions for better context and history tracking.
ā ļø Limitations
This application may have limitations based on the performance of the underlying AI models and available computing resources. Ensure that the necessary libraries are properly installed and the system is configured to handle audio and image processing efficiently.
š³ Project Structure
siri-voice-llama3/
āāā .git/
āāā (gitignored) .venv/
āāā logs/
āāā data/
ā āāā ai_response/
ā ā āāā .gitkeep
ā ā āāā (gitignored) ai_response_audio.mp3
ā āāā chat_history/
ā ā āāā 2024/
ā ā āāā 10/
ā ā āāā (gitignored) 04.log
ā ā āāā (gitignored) 05.log
ā āāā .gitkeep
ā āāā (gitignored) user_audio_prompt.wav
āāā main.py
āāā README.md
āāā requirements.txt
āāā src/
āāā __pycache__/
āāā setup.py
āāā siri.py
āāā utils.py
āāā webcam.py
š ļø Installation
- Clone the Repository
š¬ If you are using HTTPS protocol instead of SSH, change the
git clone
command accordingly.
git clone git@github.com:shricodev/siri-voice-llama3.git
cd siri-voice-llama3
- Set Up Environment Variables
GROQ_API_KEY=
GOOGLE_GENERATIVE_AI_API_KEY=
# Optional
OPENAI_API_KEY=
You can use the .env.example
file as a template.
- Create, Activate Virtual Environment and Run (Automatically)
{shell} src/scripts/start_siri_llama3.{sh/fish} main.py
Change the placeholder {shell}
to the shell you are using. It can either be
bash
or fish
.
- Create and Activate Virtual Environment (Manually)
python3 -m venv .venv
source .venv/bin/activate.fish # or .venv/bin/activate if you are not using the fish shell
Install Dependencies
pip3 install -r requirements.txt
š» Usage
- Run the Assistant
To start the assistant, execute the following command:
python main.py
This command initializes the assistant, allowing you to interact via voice commands.
OR
{shell} src/scripts/start_siri_llama3.{sh/fish} main.py
Change the placeholder {shell}
to the shell you are using. It can either be
bash
or fish
.
š¬ Logging
The application logs all interactions in the data/chat_history/
directory. You
can review past interactions in the log files to understand the context of your
conversations.
Any ERRORS when running with the shell script will be logged in the logs/
directory.
Show your support
Give a āļø if this project helped you!