Output to speaker as a pull-stream sink
pull(
generator(Math.random),
speaker()
)
It uses audio-speaker
internally
npm install --save pull-audio-speaker
yarn add pull-audio-speaker
Returns a pull-stream sink that plays audio buffers in speaker.
It takes the same options as audio-speaker
pull(
oscillator(),
gain(0.6),
speaker(err => {
// done
})
)
audiojs
for other audio componentspull-stream
for minimal streamsaudio-speaker
for the base functional package