Audio manipulation using node.js

只愿长相守 提交于 2019-12-19 17:52:04

问题


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 accomplish this? Are there any other technologies that would allow me to do this?

Thanks anyone that could help.


回答1:


You can try using this (is in development):

Node Web Audio API

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

Installation

npm install web-audio-api

Demo

node test/manual-testing/AudioContext-sound-output.js



回答2:


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.org/package/webrtc.io <- latency optimization library intended for work with media streams

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

http://www.sitepoint.com/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



来源:https://stackoverflow.com/questions/21996275/audio-manipulation-using-node-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!