1

I just wanted to record my Python program's audio output only. So, are there any libraries for this purpose?

PS: Not microphone only the PC audio.

Edited

I'm looking for something that has some function to record the PC audio only. Example : recordPcAudio(True). Something like that would be ok.

1
  • Have you tried to search for something? Can you update your question? I found several topics on this literally after few seconds of googling...
    – Kube Kubow
    Commented May 15, 2022 at 12:27

1 Answer 1

2

There is a PyAudio project, that can record system's sounds (and many more). If you go through documentation, you can find that opening a stream has several parameters (described here). In your case, you should set:

  • input: False (because not listening any input devices)
  • output: True (this will enable system sound recording)
  • output_device_index: ID (to record only on specific sound device or leave it to collect all sounds)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.