-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
36 lines (25 loc) · 698 Bytes
/
Copy pathinstall.sh
File metadata and controls
36 lines (25 loc) · 698 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
#!/bin/bash
echo "Installing Python dependencies..."
pip install -r requirements.txt
echo "Installing SpeechRecognition..."
pip install SpeechRecognition
# Detect OS
OS="$(uname)"
if [ "$OS" = "Darwin" ]; then
echo "Detected macOS"
echo "Installing PortAudio via Homebrew..."
if ! command -v brew &> /dev/null
then
echo "Homebrew not found. Install it first: https://brew.sh/"
exit 1
fi
brew install portaudio
echo "Installing PyAudio..."
pip install pyaudio
elif [ "$OS" = "Linux" ]; then
echo "Detected Linux"
sudo apt-get update
sudo apt-get install -y portaudio19-dev python3-pyaudio
pip install pyaudio
fi
echo "Done!"