A tiny debugger that's useful for echo testing programs with no output, and saving time. Requires espeak.
Inspired by: http://blog.loftdigital.com/blog/debugging-with-audio
ad = require 'audio-debug'
ad 'Hello World!'
A tiny debugger that's useful for echo testing programs with no output, and saving time. Requires espeak.
Inspired by: http://blog.loftdigital.com/blog/debugging-with-audio
ad = require 'audio-debug'
ad 'Hello World!'
// 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. <[email protected]>", | |
"version": "0.0.1", | |
"repository": { | |
"type" : "git", | |
"url" : "https://gist.github.com/3729833" | |
}, | |
"main" : "./audio-debug.js", | |
"dependencies": {} | |
} |