Disable minimum volume

This commit is contained in:
Alexandre
2024-07-07 07:16:51 +02:00
committed by GitHub
parent 252da5bd0a
commit 586bb1d1b2

View File

@@ -33,14 +33,14 @@ done
################ ################
# If default capture is set at 0%, increase it to 50% # If default capture is set at 0%, increase it to 50%
current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true # current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
current_volume="${current_volume:-100}" # current_volume="${current_volume:-100}"
# Set the default microphone volume to 50% if it's currently at 0% # Set the default microphone volume to 50% if it's currently at 0%
if [[ "$current_volume" -eq 0 ]]; then # if [[ "$current_volume" -eq 0 ]]; then
amixer sset Capture 70% # amixer sset Capture 70%
bashio::log.warning "Microphone was off, volume set to 70%." # bashio::log.warning "Microphone was off, volume set to 70%."
fi # fi
############## ##############
# CHECK PORT # # CHECK PORT #