Update audio card configuration in 99-run.sh

Set audio card configuration based on Home Assistant option.
This commit is contained in:
Alexandre
2025-09-17 14:03:58 +02:00
committed by GitHub
parent c38b9f2c83
commit 1470326084

View File

@@ -13,8 +13,10 @@ CONFIG_LOCATION="/config/config.yaml"
if bashio::config.true "homeassistant_microphone"; then if bashio::config.true "homeassistant_microphone"; then
audio_card="default" audio_card="default"
bashio::log.info "homeassistant_microphone option is selected. The audio card config value is set to 'default'. Set in the addon options to which this is set" bashio::log.info "homeassistant_microphone option is selected. The audio card config value is set to 'default'. Set in the addon options to which this is set"
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION" else
audio_card=""
fi fi
yq -iy ".realtime.audio.source = \"${audio_card}\"" "$CONFIG_LOCATION"
######################## ########################
# CONFIGURE birdnet-go # # CONFIGURE birdnet-go #