bastibe / SoundCard

A Pure-Python Real-Time Audio Library
https://soundcard.readthedocs.io
BSD 3-Clause "New" or "Revised" License
679 stars 71 forks source link

Record sound of a specific application #130

Open KMint1819 opened 3 years ago

KMint1819 commented 3 years ago

Hi, thanks for this wonderful library!

After trying out a bit, I'm wondering that if we can use this library to record a specific running application that is playing sound? Ex. I have Spotify and Youtube(Chrome) playing on the same time, but record only sound from Youtube. Thanks!

bastibe commented 3 years ago

I think this is generally possible with Windows' sound APIs, but not currently implemented in SoundCard. You can record the entire system output, though. You might also be able to create a virtual sound card with a third-party tool, play only spotify or Youtube on that sound card, and record that through SoundCard.