fix: reduce microphone gain slider max value from 4.0 to 2.0 to prevent audio distortion

This commit is contained in:
2025-06-19 13:50:24 +02:00
parent b33981f7fa
commit 123c28794d

View File

@@ -53,7 +53,7 @@ if audio_mode in ["Webapp", "USB"]:
language = st.text_input("Language (ISO 639-3)", value=default_lang)
# Gain slider for Webapp mode
if audio_mode == "Webapp":
mic_gain = st.slider("Microphone Gain", 0.0, 4.0, 1.0, 0.1, help="Adjust microphone volume sent to Auracast")
mic_gain = st.slider("Microphone Gain", 0.0, 2.0, 1.0, 0.1, help="Adjust microphone volume sent to Auracast")
else:
mic_gain = 1.0