0

I am trying to repurpose the example that records arbitrary length microphone audio to capture audio output https://python-sounddevice.readthedocs.io/en/0.4.1/examples.html#recording-with-arbitrary-duration

I am not sure how to setup the device correctly and whether I can actually capture the output sound with python-sounddevice

swartchris8
  • 620
  • 1
  • 6
  • 24
  • What do you mean by "capture audio output"? You can't record what's being sent to the speaker. Is that what you're after? – Tim Roberts Jul 13 '21 at 20:50
  • It seems there are ways to capture what is sent to the speaker such as https://github.com/ExistentialAudio/BlackHole – swartchris8 Jul 13 '21 at 20:59
  • That's a different question. It solves the problem, but it is intrusive. You have to change your apps to send through the virtual speaker. – Tim Roberts Jul 13 '21 at 21:13

1 Answers1

0

Looking into it more it seems like I need to use a virtual audio driver to capture output such as https://github.com/ExistentialAudio/BlackHole for Mac or pulseaudio can be setup to do this on Ubuntu then I can connect to the virtual audio driver which can capture the output and then write it out

swartchris8
  • 620
  • 1
  • 6
  • 24