We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ba280f commit 27864b6Copy full SHA for 27864b6
apps/silero-vad-whisper-realtime/src/audio_manager.rs
@@ -26,7 +26,19 @@ impl AudioManager {
26
.input_devices()?
27
.find(|d| d.name().map(|n| n == name).unwrap_or(false)),
28
}
29
- .ok_or_else(|| anyhow::anyhow!("No input device found"))?;
+ .ok_or_else(|| {
30
+ anyhow::anyhow!(
31
+ "No input device found, current available devices: {:?}",
32
+ host
33
+ .input_devices()
34
+ .unwrap()
35
+ .map(|d| d
36
+ .name()
37
+ .unwrap_or_else(|_| "Unnamed Device".to_string()))
38
+ .collect::<Vec<String>>()
39
+ .join(", ")
40
+ )
41
+ })?;
42
43
println!("Using audio input device: {}", device.name()?);
44
0 commit comments