-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
40 lines (31 loc) · 1010 Bytes
/
setup.sh
File metadata and controls
40 lines (31 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
echo "🚀 Setting up Ollama Voice Assistant..."
echo "======================================"
# Check if Python 3 is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed"
exit 1
fi
# Install system dependencies for Ubuntu
echo "📦 Installing system dependencies..."
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-pyaudio espeak ffmpeg wget
# Create virtual environment
echo "🔧 Creating virtual environment..."
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Upgrade pip
echo "⬆️ Upgrading pip..."
pip install --upgrade pip
# Install Python dependencies
echo "📦 Installing Python packages..."
pip install -r requirements.txt
cd ../..
echo ""
echo "✅ Setup complete!"
echo ""
echo "To start using the voice assistant:"
echo "1. Make sure Ollama is running: ollama serve"
echo "2. Activate the environment: source venv/bin/activate"
echo "3. Run the assistant: python -m src.main"