-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·61 lines (52 loc) · 1.45 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·61 lines (52 loc) · 1.45 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
# Claude Trader Setup
# One-click setup for voice trading
set -e
echo "==================================="
echo " Claude Trader Setup"
echo "==================================="
# Check Python
if ! command -v python3.12 &> /dev/null; then
echo "Python 3.12 required. Install with: brew install python@3.12"
exit 1
fi
# Create venv
echo "Creating virtual environment..."
python3.12 -m venv .venv
source .venv/bin/activate
# Install deps
echo "Installing dependencies..."
pip install -q --upgrade pip
pip install -q -r requirements.txt
# Check for whisper
echo ""
echo "Checking speech recognition..."
if python -c "import whisper" 2>/dev/null; then
echo "✓ Whisper available"
else
echo "Installing whisper for speech recognition..."
pip install -q openai-whisper
fi
# Check for sounddevice
if python -c "import sounddevice" 2>/dev/null; then
echo "✓ Audio recording available"
else
echo "Installing sounddevice for microphone..."
pip install -q sounddevice
fi
# Run credential wizard
echo ""
echo "==================================="
echo " Credential Setup"
echo "==================================="
python setup_wizard.py
echo ""
echo "==================================="
echo " Setup Complete!"
echo "==================================="
echo ""
echo "To start trading:"
echo " source .venv/bin/activate"
echo " python interactive.py # Text mode"
echo " python voice/voice_trader.py # Voice mode"
echo ""