tone-stream 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/examples/dtmf_to_file.js +4 -1
- package/package.json +1 -1
package/examples/dtmf_to_file.js
CHANGED
|
@@ -5,7 +5,9 @@ const wav = require('wav')
|
|
|
5
5
|
function usage() {
|
|
6
6
|
console.log(`
|
|
7
7
|
Required parameters: 'dtmf_sequence' output_file sample_rate bit_depth, channels
|
|
8
|
-
|
|
8
|
+
'1234' digits.1234.8000hz.wav 8000 16 1
|
|
9
|
+
'1234' digits.1234.16000hz.wav 16000 16 1
|
|
10
|
+
'1234' digits.1234.32000hz.wav 32000 32 1
|
|
9
11
|
`)
|
|
10
12
|
}
|
|
11
13
|
|
|
@@ -43,6 +45,7 @@ ts.pipe(speaker)
|
|
|
43
45
|
ts.pipe(fileWriter)
|
|
44
46
|
|
|
45
47
|
ts.concat(tones)
|
|
48
|
+
ts.add([ sampleRate, 's' ])
|
|
46
49
|
|
|
47
50
|
ts.on('empty', () => {
|
|
48
51
|
console.log('end_of_audio')
|