Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A npm module for streaming stuff through macs 'say' command

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 test.js
README.md

say-stream

Streaming stuff into macs 'say' command. Isn't it nice to have a computer that will talk to you?

Install it via npm install say-stream and make sure to test it with npm test.

Examples

     // A robot speaking everything from stdin
    var Say = require('say-stream').Say;
    var robot = new Say();
    process.stdin.pipe(robot);
    var http = require('http');
    var choir = new Say("cellos");
    var url = "http://www.random.org/integers/?num=10&min=1&max=6&col=1&base=10&format=plain&rnd=new";
    http.get(url, function(request) {
        request.setEncoding('utf8');
        request.pipe(choir).pipe(process.stdout);
    });
    var net = require('net');
    var whisper = new Say('whisper');
    var server = net.createServer(function(socket) {
        socket.pipe(whisper).pipe(process.stdout);
    });
    server.listen(8000);
    console.log("Listening on port 8000");
Something went wrong with that request. Please try again.