最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Audio manipulation using node.js - Stack Overflow

programmeradmin1浏览0评论

My team has been using the Web Audio API/Getusermedia in a product and we are going really well with our chrome and firefox users. But we still have a large base of users that we would love to reach, but due to technology barriers, we still can't (mostly, those are IE users), as their main browser does not support the technology, and they do not or can not change to a modern browser.

We are planning to get to those users, but we don't want to go to Flash, Flex, Silverlight or anything similar.

So, thinking about solutions, I thought that maybe I could pass by this difficulty if I moved the audio manipulation, from the browser to the server. NodeJS was the first answer when trying to figure out how to do it.

Would it be possible to be done using NodeJS? Are there any libraries available that would help us acplish this? Are there any other technologies that would allow me to do this?

Thanks anyone that could help.

My team has been using the Web Audio API/Getusermedia in a product and we are going really well with our chrome and firefox users. But we still have a large base of users that we would love to reach, but due to technology barriers, we still can't (mostly, those are IE users), as their main browser does not support the technology, and they do not or can not change to a modern browser.

We are planning to get to those users, but we don't want to go to Flash, Flex, Silverlight or anything similar.

So, thinking about solutions, I thought that maybe I could pass by this difficulty if I moved the audio manipulation, from the browser to the server. NodeJS was the first answer when trying to figure out how to do it.

Would it be possible to be done using NodeJS? Are there any libraries available that would help us acplish this? Are there any other technologies that would allow me to do this?

Thanks anyone that could help.

Share Improve this question asked Feb 24, 2014 at 18:44 user3288673user3288673 811 gold badge1 silver badge5 bronze badges 3
  • 1 What kind of manipulation? Does it need to be real-time? There are several FFT JavaScript libraries out there, but without knowing more about your particular use case it's impossible to say whether FFT would help. – candu Commented Nov 14, 2014 at 23:02
  • 1 check out npmjs/package/web-audio-api and this near-duplicate question: stackoverflow./questions/25197708/… also think about possibly using phantomjs – markasoftware Commented Nov 16, 2014 at 21:40
  • Are you set on using WebAudio? There are other libraries for processing/manipulating audio. What exactly are you trying to acplish with the audio? Is it streaming audio? Is it an audio file? – tsturzl Commented Nov 18, 2014 at 18:16
Add a ment  | 

2 Answers 2

Reset to default 3 +100

It could easily be done. Node is simply an IO engine designed for rapid response. If it needs to happen in real time then I imagine latency would be a usability-breaking issue due to networking restraints. If it doesn't, then I think it would be a great solution! :)

Either way here are a couple related resources

https://www.npmjs/package/webrtc.io <- latency optimization library intended for work with media streams

http://wac.ircam.fr/ an uping conference (Jan 2015) dedicated to the types of problems you are dealing with.

http://www.sitepoint./5-libraries-html5-audio-api/ A few web libraries for use with audio. #3 and #4 look like they are related to what you are trying to do

You can try using this (is in development):

Node Web Audio API

https://github./sebpiq/node-web-audio-api

Installation

npm install web-audio-api

Demo

node test/manual-testing/AudioContext-sound-output.js
发布评论

评论列表(0)

  1. 暂无评论