Capturing, modifying, and then outputting audio electronically

I am trying to capture, modify, and finally output audio to a host using Electron (Mac OSX). These are the following steps:

  1. Capturing audio before it is released, possibly through CoreAudio.
  2. Change the audio stream / buffer through the web audio API.
  3. Bring the modified buffer to the sound device.

I tried node-core-audio . However, I can only achieve fast compression of the sound. Other than that, I could not find a good solution for audio input / output.

How can I achieve this without sacrificing sound quality?

+6
source share
1 answer

I'm not sure what you want to achieve, but on MacOS this is not yet possible. I ran into the problem of recording system sound on MacOS and found a solution. Finally! Using Soundflower and Javascript with an electron, I was finally able to record system sound. Although this is not exactly what you need, I changed this audio stream, adding it to the video stream from the system, and then displayed it to the user. Here is my solution to the problem In this detailed blog post, I think this is better than posting all the long steps here on stackoverflow.

0
source

All Articles