forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·29 lines (24 loc) · 830 Bytes
/
build.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
#!/usr/bin/env bash
# wyoming-assist-microphone
set -euxo pipefail
apt-get update
apt-get install -y --no-install-recommends --fix-missing \
netcat-traditional \
libasound2-plugins \
alsa-utils
apt-get clean
rm -rf /var/lib/apt/lists/*
pip3 install --no-cache-dir -U \
setuptools \
wheel \
webrtc-noise-gain==1.2.3 \
pysilero-vad==1.0.0
pip3 install --no-cache-dir \
"wyoming-satellite[webrtc] @ https://github.com/rhasspy/wyoming-satellite/archive/refs/tags/v${SATELLITE_VERSION}.tar.gz"
# Clone rootfs & config.aml
git clone --depth=1 https://github.com/home-assistant/addons /tmp/addons
git -C /tmp/addons sparse-checkout set --no-cone assist_microphone/ '!*/assist_microphone'
# Copy sounds
mkdir -p /usr/src/sounds
cp -r /tmp/addons/assist_microphone/sounds/* /usr/src/sounds/
rm -rf /tmp/addons