Skip to content

Latest commit

 

History

History
126 lines (92 loc) · 2.63 KB

INSTALL.md

File metadata and controls

126 lines (92 loc) · 2.63 KB

Installation Guide for Stonic Voice Assistant

This guide will help you install and set up Stonic, a personal voice assistant inspired by JARVIS.

Prerequisites

  • Python 3.7 or higher
  • Working microphone
  • Speakers or headphones
  • Internet connection (for speech recognition)

Installation Steps

1. Clone the Repository

git clone https://github.com/yourusername/stonic.git
cd stonic

Or download and extract the ZIP file from the repository.

2. Create a Virtual Environment (Recommended)

Windows

python -m venv venv
venv\Scripts\activate

macOS/Linux

python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

Troubleshooting PyAudio Installation

If you face issues installing PyAudio, try these platform-specific solutions:

Windows

pip install pipwin
pipwin install pyaudio

macOS

brew install portaudio
pip install pyaudio

Linux (Ubuntu/Debian)

sudo apt-get install python3-pyaudio
# or
sudo apt-get install portaudio19-dev
pip install pyaudio

4. Configuration

Edit the config.py file to customize:

  • Your name
  • Application paths
  • Websites
  • Sound detection sensitivity
  • Other preferences

5. Running Stonic

Using the Batch File (Windows)

Double-click the start_stonic.bat file or run it from the command line:

start_stonic.bat

Using Python Directly

python main.py

With command-line options:

python main.py --threshold 0.4 --tts-engine gtts --debug

6. Using Stonic

  1. After starting, Stonic will greet you
  2. Make a loud sound (like a double clap) to activate it
  3. Speak your command clearly when prompted
  4. Wait for Stonic to process and respond

Common Commands

  • "Open Chrome"
  • "Open YouTube"
  • "What time is it?"
  • "Tell me a joke"
  • "Exit" or "Goodbye"

Troubleshooting

  • Microphone not working: Make sure your microphone is set as the default recording device
  • Sound detection too sensitive/not sensitive enough: Adjust the threshold value in config.py or use the --threshold command-line option
  • Speech recognition not accurate: Speak clearly and in a quiet environment
  • Applications not opening: Check the paths in config.py to make sure they match your system

Advanced Configuration

For advanced users, you can modify the code to add new features:

  • Add new websites in the WEBSITES dictionary in config.py
  • Add new application paths in the APPLICATIONS dictionary
  • Customize responses in the various response lists

Support

If you encounter any issues, please open an issue on the GitHub repository.