Skip to content

A live bird collage card for your Home Assistant dashboard.

adding sox mp3 extension to installation

mcguirepr8921a302f0d57c
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index ff73340d..ac1bc916 100755
--- a/scripts/install_services.sh
+++ b/scripts/install_services.sh
@@ -442,12 +442,12 @@ EOF
}
install_sox() {
- if which sox &> /dev/null;then
+ if which sox | grep mp3 &> /dev/null;then
echo "Sox is installed"
else
echo "Installing sox"
apt -qq update
- apt install -y sox
+ apt install -y sox libsox-fmt-mp3
echo "Sox installed"
fi
}
diff --git a/scripts/update_services.sh b/scripts/update_services.sh
index 3dcd03b4..69c2de33 100755
--- a/scripts/update_services.sh
+++ b/scripts/update_services.sh
@@ -438,11 +438,11 @@ EOF
}
install_sox() {
- if which sox &> /dev/null;then
+ if which sox | grep mp3 &> /dev/null;then
echo "Sox is installed"
else
echo "Installing sox"
- apt install -y sox
+ apt install -y sox libsox-fmt-mp3
echo "Sox installed"
fi
}