Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error getting default mic #52

Closed
ipelupessy opened this issue Jun 4, 2019 · 1 comment · Fixed by #53
Closed

error getting default mic #52

ipelupessy opened this issue Jun 4, 2019 · 1 comment · Fixed by #53

Comments

@ipelupessy
Copy link
Contributor

on linux, I get the following error when trying to call default_microphone():

  File "/usr/lib/python3.7/site-packages/soundcard/pulseaudio.py", line 161, in _match_soundcard
    raise IndexError('no soundcard with id {}'.format(id))
IndexError: no soundcard with id alsa_output.pci-0000_00_1f.3.analog-stereo.monitor

default_speaker works, I can get all_microphones (which only contains 1)...

@ipelupessy
Copy link
Contributor Author

the exception is caused by a monitor being the pulseaudio default source id - I am not sure why my configuration is setup this way (it does not seem a sane default)..in any case I have made a PR to cover this case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant