UNPKG
@adhityan/speaker
Version:
latest (0.5.7)
0.5.7
0.5.6
0.5.5
Output PCM audio data to the speakers
github.com/TooTallNate/node-speaker
TooTallNate/node-speaker
@adhityan/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)