Update packages pre-install with apt-get.

This commit is contained in:
Luis Guzmán 2023-10-24 20:37:12 -06:00
parent 3425a1d561
commit a90d7ec3ca
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,8 @@ else
exit
fi
sudo apt-get update -q2
ENGLISH_VOSK_MODEL="https://alphacephei.com/vosk/models/vosk-model-en-us-0.22-lgraph.zip"
SPANISH_VOSK_MODEL="https://alphacephei.com/vosk/models/vosk-model-small-es-0.42.zip"
FRENCH_VOSK_MODEL="https://alphacephei.com/vosk/models/vosk-model-small-fr-0.22.zip"
@ -72,7 +74,7 @@ done
VOSK_FOLDER="$(basename $VOSK_MODEL|sed 's|.zip||')"
# Install dependencies
sudo apt install -y git ssh python3-setuptools pulseaudio-utils xdotool
sudo apt-get install -y git ssh python3-setuptools pulseaudio-utils xdotool
# Install vosk python3 module.
[ -d "$OPT_VOSK" ] && sudo rm -rf "$OPT_VOSK"