From 687c2c88c7ee404598e23363f0e638e17faf0a1a Mon Sep 17 00:00:00 2001 From: David Kleingeld Date: Fri, 12 Sep 2025 15:56:48 +0200 Subject: [PATCH] Fix experimental audio volume being significantly too low (#38062) The rodio channelcount convertor halves the volume. This addresses that in most cases by using the default channelcount for the system microphone which is usually 2. A proper fix will follow later as part of the de-noising PR Release Notes: - N/A --- crates/audio/src/audio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/audio/src/audio.rs b/crates/audio/src/audio.rs index 44f2d5e07d5e7ddb9bbb18925bb8bdbe7581e903..ab8d85cdaa6bab7ed1be3fdab8a66b42f883533b 100644 --- a/crates/audio/src/audio.rs +++ b/crates/audio/src/audio.rs @@ -161,7 +161,7 @@ impl Audio { .default_device()? .default_config()? .prefer_sample_rates([SAMPLE_RATE, SAMPLE_RATE.saturating_mul(nz!(2))]) - .prefer_channel_counts([nz!(1), nz!(2)]) + // .prefer_channel_counts([nz!(1), nz!(2)]) .prefer_buffer_sizes(512..) .open_stream()?; info!("Opened microphone: {:?}", stream.config());