Skip to content

Instantly share code, notes, and snippets.

@Bren2010
Created September 15, 2012 21:21
Show Gist options
  • Save Bren2010/3729833 to your computer and use it in GitHub Desktop.
Save Bren2010/3729833 to your computer and use it in GitHub Desktop.
Audio Debugger
// Audio Debugger
//
// Author: Brendan Mc.
// Date: Sept 15, 2012
//
// Requires espeak.
var espeak = require('child_process').spawn('espeak');
exports = module.exports = function(out) {
if (!espeak.stdin.writable) {
throw new Error('Espeak daemon not available.');
}
espeak.stdin.write(out + "\n");
}
{
"name": "audio-debug",
"description" : "A tiny debugger that's useful for echo testing programs with no output, and saving time.",
"author" : "Brendan Mc. <brendan@bren2010.com>",
"version": "0.0.1",
"repository": {
"type" : "git",
"url" : "https://gist.github.com/3729833"
},
"main" : "./audio-debug.js",
"dependencies": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment