Closed dontmansion1984 closed 3 years ago
Please read the documentation before asking questions.
soundcard.get_speaker(...)
and soundcard.get_microphone(...)
to select a speaker or microphone. If you pass include_loopback=True
to get_microphone
, you can listen in on your speakers (not available on all operating systems).Furthermore, this is not a support forum, but a place for reporting issues and discussing development.
1) 'Soundcard' allows to choose input device for recording and output device for playing sound. But it can't choose device to "listen" sound. I installed 'Virtual Audio Cable' which creates 'Virtual input' and 'Virtual output' which allows to record sound from system directly. It works when I choose them using 'sc.default_speaker()[ i ]' and 'sc.all_microphones()[ i ]' but I have to choose them in windows properties anyway. How can I choose sound devices from Python only?
2) 'Soundcard' has noises during playing sound comparing to 'PyAudio'. I can give both two examples - 'Soundcard' and 'PyAudio' codes. Soundcard:
PyAudio:
3) Why 'mic.record(numframes=1024)' has (1024, 2) shape? Why does it have two rows and not one?