javascript - Capture, modify and then output audio in electron - Stack Overflow

I'm trying to capture, modify and finally output audio in node with Electron (Mac OSX). These are

I'm trying to capture, modify and finally output audio in node with Electron (Mac OSX). These are the steps:

  1. Capture the audio before it's output, possibly via CoreAudio.
  2. Modify the audio stream/buffer via the Web Audio API.
  3. Output the modified buffer to the sound device.

I've tried node-core-audio. However, the most I can achieve is a rapid glitching sound. Other than this a I haven't been able to find a good solution I/O of audio.

How can I achieve this without sacrificing sound quality?

I'm trying to capture, modify and finally output audio in node with Electron (Mac OSX). These are the steps:

  1. Capture the audio before it's output, possibly via CoreAudio.
  2. Modify the audio stream/buffer via the Web Audio API.
  3. Output the modified buffer to the sound device.

I've tried node-core-audio. However, the most I can achieve is a rapid glitching sound. Other than this a I haven't been able to find a good solution I/O of audio.

How can I achieve this without sacrificing sound quality?

Share edited Dec 2, 2018 at 10:36 Adviov asked Jan 6, 2016 at 8:48 AdviovAdviov 4805 silver badges17 bronze badges 3
  • Did you find anything interesting @Luke? – ZogStriP Commented Nov 15, 2016 at 17:28
  • @ZogStriP No, unfortunately there didn't seem to be a solution at the time - which is a shame. – Adviov Commented Jan 17, 2017 at 9:25
  • Have you looked into WebRTC? – unseen_damage Commented Mar 22, 2017 at 13:44
Add a ment  | 

1 Answer 1

Reset to default 3

I'm not sure what you want to acplish, but on MacOS, this is not yet possible. I came accross the problem of recording system sound on MacOS, and I found a solution. Finally! Using Soundflower and Javascript with electron, I finally could record system audio. Though it is not exactly what you want, I modified this audio stream by adding it with video stream from the System, then displayed it to the user. Here is my solution to the issue IN this detailed blog post I think it is better than posting all the long steps here on stackoverflow.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745062125a4609027.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信