From 8a48790212a5ad6b95f9ed8c3610df147e6638ac Mon Sep 17 00:00:00 2001 From: miro Date: Mon, 25 Nov 2024 20:43:14 +0000 Subject: [PATCH] :tada: --- build_raspOVOS.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build_raspOVOS.sh b/build_raspOVOS.sh index 361153ed..b9b3d157 100644 --- a/build_raspOVOS.sh +++ b/build_raspOVOS.sh @@ -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 @@ -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 @@ -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 @@ -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] @@ -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