GithubHelp home page GithubHelp logo

dcramer / voices.py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dz/voices.py

13.0 3.0 3.0 15 KB

A self contained python-based server that allows remote usage of OS X's text-to-speech abilities.

Shell 27.73% Python 72.27%

voices.py's Introduction

voices.py

What is it?

voices.py is a self-contained python script that starts a webserver that listens on a user-entered IP and port that allows a visitor to remotely send text-to-speech commands on OS X machines.

What is it good for?

The machines that coworkers would leave unattended and unlocked is the primary impetus. If you find such a machine, do the following:

  1. Open up Terminal.app
  2. Type the following:

    curl -L -O https://github.com/dcramer/voices.py/raw/master/bootstrap.sh && sh bootstrap.sh && rm bootstrap.sh
  3. In a browser, go to the entered IP and port number. For example, http://192.168.1.199:2046. You should be presented with a page that has a select box and a text box. Simply choose a voice and enter a message.
  4. Press "Say".
  5. Profit.

Why do I want to do this?

For hilarity! Suggestions:

  1. Use the "Whisper" voice and have the target's computer whisper "kill all humans" every 30 minutes or so.
  2. Use "Cellos" with a suitably catchy lyric.
  3. Use "Trinoids" and make the computer say: "Please wait. Calculating. Boop dee boop dee boop dee boop dee boop dee boop."

Requirements

Mac OS X, obviously. And also Python.

Usage details

Without an argument, voices.py will attempt to autodiscover your IP and automatically use 2046 as the port:

$ python voices.py 
Explicit IP and port not entered.  Attempted to autodiscover IP address.
Serving on 192.168.1.199:2046

With an argument, voices.py will use the IP and port you entered. Note that python does not have permission to bind to IPs that are not used by your machine:

$ python voices.py 192.168.1.199:8080
Serving on 192.168.1.199:8080

For a short help, do use --help:

$ python voices.py --help
Usage: python voices.py x.x.x.x:port

voices.py's People

Contributors

dcramer avatar dz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

un33k venkatesh22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.