Commit 196221f8 authored by Chris Lord's avatar Chris Lord

Put speech output binary in a variable that can be modified

parent 9a7e29aa
......@@ -141,9 +141,12 @@ quiet: function() {
}
},
speechCommand: { name: 'espeak', args: ['-m'] },
say: function(text) {
this.quiet();
this.speechProcess = ChildProcess.execFile('espeak', ['-m', text]);
this.speechProcess = ChildProcess.execFile(this.speechCommand.name,
this.speechCommand.args.concat(text));
this.speechProcess.on('exit', () => {
this.speechProcess = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment