Skip to content

Instantly share code, notes, and snippets.

@impronunciable
Created October 31, 2012 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save impronunciable/3990546 to your computer and use it in GitHub Desktop.
Save impronunciable/3990546 to your computer and use it in GitHub Desktop.
var tuiter = require('tuiter')(require('./keys.json'));
var Speaker = require('speaker');
var speaker = new Speaker({
channels: 1,
bitDepth: 16,
sampleRate: 44100
});
tuiter.sample(function(stream){
stream.pipe(speaker);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment