-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild_raspOVOS_es.sh
43 lines (34 loc) · 1.38 KB
/
build_raspOVOS_es.sh
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
37
38
39
40
41
42
43
#!/bin/bash
# Exit on error
# If something goes wrong just stop.
# it allows the user to see issues at once rather than having
# scroll back and figure out what went wrong.
set -e
# Activate the virtual environment
source /home/$USER/.venvs/ovos/bin/activate
echo "Copying overlays..."
sudo cp -rv /mounted-github-repo/overlays/es/* /
echo "Setting up default wifi country..."
/usr/bin/raspi-config nonint do_wifi_country ES
echo "Installing Citrinet plugin..."
uv pip install --no-progress ovos-stt-plugin-citrinet
echo "Downloading spanish citrinet model..."
python /mounted-github-repo/scripts/download_citrinet_es.py
# since script was run as root, we need to move downloaded files
mkdir -p /home/ovos/.cache/huggingface/hub/
mv /root/.cache/huggingface/hub/models--Jarbas--stt_es_citrinet_512_onnx/ /home/ovos/.cache/huggingface/hub/models--Jarbas--stt_es_citrinet_512_onnx/
echo "Installing AhoTTS"
uv pip install --no-progress ovos-tts-plugin-ahotts
git clone https://github.com/aholab/AhoTTS /tmp/AhoTTS
cd /tmp/AhoTTS
apt-get install -y cmake
./script_compile_all_linux.sh
mv /tmp/AhoTTS/bin /usr/bin/AhoTTS/
cd ~
echo "Creating system level mycroft.conf..."
mkdir -p /etc/mycroft
echo "Ensuring permissions for $USER user..."
# Replace 1000:1000 with the correct UID:GID if needed
chown -R 1000:1000 /home/$USER
echo "Cleaning up apt packages..."
apt-get --purge autoremove -y && apt-get clean