开发者

Use 2 sound cards

开发者 https://www.devze.com 2023-01-05 07:12 出处:网络
I need to play a sound with sound card 开发者_如何转开发\"A\", while recording another sound using sound card \"B\". I know how to play or record a sound (using PyAudio), but I don\'t know how to choo

I need to play a sound with sound card 开发者_如何转开发"A", while recording another sound using sound card "B". I know how to play or record a sound (using PyAudio), but I don't know how to choose which sound card to use for it. I have the impression that PyAudio doesn't allow choosing the sound card, but I might be wrong (I'm a beginner at Python).


It appears that PortAudio, the C package that PyAudio wraps, has the ability to choose a sound card.

PortAudio has the parameters / methods PaDeviceIndex, Pa_getdeviceCount(), and PaUseHostAPISpecificDeviceSpecification.

For some reason, PyAudio does not wrap those parameters / methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消