A simple voice assistant that listens to your speech, converts it to text, queries a local LLM using LangChain, and speaks the response back using TTS.
- π€ Speech-to-text using
SpeechRecognition+ microphone - π€ Local LLM querying via
langchain-ollama(Mistral model) - π§ Maintains chat history using LangChain memory
- π Text-to-speech using
pyttsx3 - π₯οΈ UI powered by Streamlit
git clone https://github.com/AzkaSahar/AI-Voice-Assistant.git
cd AI-Voice-Assistantpip install -r requirements.txt
β οΈ You may need to installpyaudiomanually:pip install pipwin pipwin install pyaudio
Make sure Ollama is installed and the mistral model is available:
ollama run mistralstreamlit run ai_voice_Assistant.py- Listens to user voice input
- Transcribes using
SpeechRecognition - Passes query and history to LangChain-powered Mistral model via
langchain-ollama - Speaks response using
pyttsx3 - Maintains a visible chat history
MIT β Free to use, modify, and share.