This guide will help you install and set up Stonic, a personal voice assistant inspired by JARVIS.
- Python 3.7 or higher
- Working microphone
- Speakers or headphones
- Internet connection (for speech recognition)
git clone https://github.com/yourusername/stonic.git
cd stonic
Or download and extract the ZIP file from the repository.
python -m venv venv
venv\Scripts\activate
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
If you face issues installing PyAudio, try these platform-specific solutions:
pip install pipwin
pipwin install pyaudio
brew install portaudio
pip install pyaudio
sudo apt-get install python3-pyaudio
# or
sudo apt-get install portaudio19-dev
pip install pyaudio
Edit the config.py file to customize:
- Your name
- Application paths
- Websites
- Sound detection sensitivity
- Other preferences
Double-click the start_stonic.bat file or run it from the command line:
start_stonic.bat
python main.py
With command-line options:
python main.py --threshold 0.4 --tts-engine gtts --debug
- After starting, Stonic will greet you
- Make a loud sound (like a double clap) to activate it
- Speak your command clearly when prompted
- Wait for Stonic to process and respond
- "Open Chrome"
- "Open YouTube"
- "What time is it?"
- "Tell me a joke"
- "Exit" or "Goodbye"
- Microphone not working: Make sure your microphone is set as the default recording device
- Sound detection too sensitive/not sensitive enough: Adjust the
thresholdvalue inconfig.pyor use the--thresholdcommand-line option - Speech recognition not accurate: Speak clearly and in a quiet environment
- Applications not opening: Check the paths in
config.pyto make sure they match your system
For advanced users, you can modify the code to add new features:
- Add new websites in the
WEBSITESdictionary inconfig.py - Add new application paths in the
APPLICATIONSdictionary - Customize responses in the various response lists
If you encounter any issues, please open an issue on the GitHub repository.