Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 25, 2024
1 parent 3d4eafc commit 8a48790
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build_raspOVOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ chfn -f "RaspOVOS" $USER
# Update package list and install necessary tools
echo "Updating base system..."
apt-get update
apt-get install -y --no-install-recommends git curl i2c-tools fbi swig libssl-dev libfann-dev portaudio19-dev libpulse-dev build-essential python3-dev python3-pip
apt-get install -y --no-install-recommends git unzip curl i2c-tools fbi swig libssl-dev libfann-dev portaudio19-dev libpulse-dev build-essential python3-dev python3-pip

echo "Installing Pipewire..."
bash /mounted-github-repo/setup_pipewire.sh
Expand All @@ -26,7 +26,6 @@ bash /mounted-github-repo/setup_sysctl.sh
bash /mounted-github-repo/setup_udev.sh
bash /mounted-github-repo/setup_kernel_modules.sh


# splashscreen
echo "Creating OVOS splashscreen..."
mkdir -p /opt/ovos
Expand All @@ -35,7 +34,6 @@ cp -v /mounted-github-repo/splashscreen.service /etc/systemd/system/splashscreen
chmod 644 /etc/systemd/system/splashscreen.service
ln -s /etc/systemd/system/splashscreen.service /etc/systemd/system/multi-user.target.wants/splashscreen.service


# Create virtual environment for ovos
echo "Creating virtual environment..."
mkdir -p /home/$USER/.venvs
Expand All @@ -46,7 +44,7 @@ source /home/$USER/.venvs/ovos/bin/activate

# install OVOS in venv
echo "Installing OVOS..."
pip3 install wheel cython sdnotify tflite_runtime
pip3 install wheel cython sdnotify tflite_runtime numpy<2.0.0
pip3 install ovos-core[lgpl,mycroft,plugins,skills-audio,skills-essential,skills-internet,skills-media]
pip3 install ovos-dinkum-listener[extras,linux,onnx]
pip3 install ovos-phal[extras,linux]
Expand All @@ -56,8 +54,13 @@ pip3 install ovos-audio-transformer-plugin-ggwave
pip3 install -U -f https://whl.smartgic.io/ ggwave

echo "Downloading default wake word models..."
# TODO - vosk
wget https://github.com/OpenVoiceOS/precise-lite-models/raw/master/wakewords/en/hey_mycroft.tflite -P /home/$USER/.local/share/precise_lite/
# Download and extract VOSK model
VOSK_DIR="/home/$USER/.local/share/vosk"
mkdir -p $VOSK_DIR
wget http://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip -P $VOSK_DIR
unzip -o $VOSK_DIR/vosk-model-small-en-us-0.15.zip -d $VOSK_DIR
rm $VOSK_DIR/vosk-model-small-en-us-0.15.zip

echo "Setting up systemd..."
# copy system scripts over
Expand Down

0 comments on commit 8a48790

Please sign in to comment.