File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
const fs = require ( 'fs' ) ;
19
19
const { assert} = require ( 'chai' ) ;
20
- const { execSync} = require ( 'child_process' ) ;
20
+ const cp = require ( 'child_process' ) ;
21
+
22
+ const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
21
23
22
24
const cmd = 'node audioProfile.js' ;
23
25
const text = 'Hello Everybody! This is an Audio Profile Optimized Sound Byte.' ;
Original file line number Diff line number Diff line change 16
16
'use strict' ;
17
17
18
18
const { assert} = require ( 'chai' ) ;
19
- const { execSync} = require ( 'child_process' ) ;
19
+ const cp = require ( 'child_process' ) ;
20
+
21
+ const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
20
22
21
23
const cmd = 'node listVoices.js' ;
22
24
Original file line number Diff line number Diff line change 17
17
18
18
const fs = require ( 'fs' ) ;
19
19
const { assert} = require ( 'chai' ) ;
20
- const { execSync} = require ( 'child_process' ) ;
20
+ const cp = require ( 'child_process' ) ;
21
+
22
+ const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
21
23
22
24
const outputFile = 'output.mp3' ;
23
25
Original file line number Diff line number Diff line change 18
18
const fs = require ( 'fs' ) ;
19
19
const path = require ( 'path' ) ;
20
20
const { assert} = require ( 'chai' ) ;
21
- const { execSync} = require ( 'child_process' ) ;
21
+ const cp = require ( 'child_process' ) ;
22
+
23
+ const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
22
24
23
25
const cmd = 'node synthesize.js' ;
24
26
const text = 'Hello there.' ;
You can’t perform that action at this time.
0 commit comments