Update packages pre-install with apt-get.
This commit is contained in:
parent
3425a1d561
commit
a90d7ec3ca
|
@ -21,6 +21,8 @@ else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sudo apt-get update -q2
|
||||||
|
|
||||||
ENGLISH_VOSK_MODEL="https://alphacephei.com/vosk/models/vosk-model-en-us-0.22-lgraph.zip"
|
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"
|
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"
|
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||')"
|
VOSK_FOLDER="$(basename $VOSK_MODEL|sed 's|.zip||')"
|
||||||
|
|
||||||
# Install dependencies
|
# 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.
|
# Install vosk python3 module.
|
||||||
[ -d "$OPT_VOSK" ] && sudo rm -rf "$OPT_VOSK"
|
[ -d "$OPT_VOSK" ] && sudo rm -rf "$OPT_VOSK"
|
||||||
|
|
Loading…
Reference in New Issue