You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[pipe-stdout.js](examples/pipe-stdout.js)| PCM to stdout — pipe to `aplay`, `sox`, etc. |
88
88
|[mic.js](examples/mic.js)| Live microphone → speakers with RMS meter (requires [`audio-mic`](https://github.com/audiojs/audio-mic)) |
89
89
90
-
## Node extensions
91
-
92
-
Beyond the spec, for Node.js. Not portable to browsers.
93
-
94
-
-**`addModule(fn)`** — register a processor via callback instead of URL, no file needed
95
-
-**`sinkId: stream`** — pipe PCM to any writable: `new AudioContext({ sinkId: process.stdout })` then `node synth.js | aplay -f cd`
96
-
-**`numberOfChannels`, `bitDepth`** — control output format in the constructor.
97
-
-**`CustomMediaStreamTrack`** — extends `MediaStreamTrack` with a public constructor and `pushData(chunk, options)` to feed audio data (e.g. from a microphone). Prior art: `CanvasCaptureMediaStreamTrack`. See the [mic FAQ](#how-do-i-capture-audio-from-the-microphone).
Beyond the spec, for Node.js. Not portable to browsers.
232
+
233
+
-**`addModule(fn)`** — register a processor via callback instead of URL, no file needed
234
+
-**`sinkId: stream`** — pipe PCM to any writable: `new AudioContext({ sinkId: process.stdout })` then `node synth.js | aplay -f cd`
235
+
-**`numberOfChannels`, `bitDepth`** — control output format in the constructor.
236
+
-**`CustomMediaStreamTrack`** — extends `MediaStreamTrack` with a public constructor and `pushData(chunk, options)` to feed audio data (e.g. from a microphone). Prior art: `CanvasCaptureMediaStreamTrack`. See the [mic FAQ](#how-do-i-capture-audio-from-the-microphone).
237
+
238
238
## Alternatives
239
239
240
-
-**[node-web-audio-api](https://github.com/ircam-ismm/node-web-audio-api)** — Rust napi bindings. Faster heavy DSP, but Node-only with native compilation and partial spec.
240
+
-**[node-web-audio-api](https://github.com/ircam-ismm/node-web-audio-api)** — Rust napi bindings. Faster heavy DSP, but node-only with compilation step and partial spec.
0 commit comments