Why is the Web Audio API not supported in nodejs?

I understand that the Web Audio API is a client function, but nodejs is based on the implementation of a client version of V8 on ECMAScript, which includes the Web Audio API.
Why is nodejs lacking full support for the web audio API?
Is it because AudioContext is based on a global window object?
Did I miss the point here?
Is there a plan to make it available in the future?

+10
source share
2 answers

Node.js does not support Web Audio because it is not part of the JavaScript language itself - it is a separate JavaScript API for the web platform .

You can think of it as Web Workers, requestAnimationFrame or XMLHttpRequest - they are part of the JavaScript browser environment, but do not necessarily make sense for other runtime environments.

V8 is a common JavaScript engine; it does not include web platform features. This is one of the reasons Node.js can use it. The implementation of Web Audio in Chrome is part of Blink, a rendering engine.

The web-audio-api npm module is designed to implement Web Audio for Node.js.

+7
source

Obviously, it would be illogical to use a non-blocking platform and then sabotage its main function using a process that is better left to the client processor for analysis - why pay 100,000 audio users when 100,000 users have already paid for the last processor that does nothing on the actual deed ...

HOWEVER, it may be useful to store intellectual property elements on your backend - waveforms and algorithms of certain audio nodes that were developed at high cost, but they are very easy to copy if they were on the client side .... then it will have it makes sense to keep this component on the server side (but whether it will be a node solution or not, this is another argument)

0
source

All Articles