rrevo commited on
Commit
83a5514
·
1 Parent(s): 6ef5b41
Files changed (1) hide show
  1. client/src/audio_utils.py +1 -0
client/src/audio_utils.py CHANGED
@@ -18,6 +18,7 @@ def get_microphone(default_microphone: str | None = "pulse", sample_rate: int =
18
  raise ValueError(err_msg)
19
  else:
20
  for index, name in enumerate(sr.Microphone.list_microphone_names()):
 
21
  if mic_name in name:
22
  return sr.Microphone(sample_rate=sample_rate, device_index=index)
23
  return sr.Microphone(sample_rate=sample_rate)
 
18
  raise ValueError(err_msg)
19
  else:
20
  for index, name in enumerate(sr.Microphone.list_microphone_names()):
21
+ print(f"Microphone {index}: {name}")
22
  if mic_name in name:
23
  return sr.Microphone(sample_rate=sample_rate, device_index=index)
24
  return sr.Microphone(sample_rate=sample_rate)