开发者

Use 2 sound cards

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜