UNPKG
@browserbox/speaker
Version:
latest (1.0.1)
1.0.1
1.0.0
Output PCM audio data to the speakers
github.com/dosyago-sec/node-speaker
dosyago-sec/node-speaker
@browserbox/speaker
/
examples
/
stdin.js
11 lines
(7 loc)
•
180 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
/** * Pipe data to stdin and it will be played through your speakers. */
const
Speaker
=
require
(
'../'
)
const
speaker =
new
Speaker
() process.
stdin
.
pipe
(speaker)