Code Monkey home page Code Monkey logo

tweetie-pi's Introduction

tweetie-pi

Is a simple NodeJS app that uses the Twitter Stream API and the Emic 2 Text-to-Speech Module to read tweets out loud. See a really short demo on YouTube: http://www.youtube.com/watch?v=wUrey-f32_Q

This first version is mostly a proof of concept. It can/will/does read all tweets associated with the user specified in config.secure.json:twitterCredentails. The first version also includes a few basic transformations of the original tweet to sound more colloquial:

  • Uses user name and not @handle, followed by "said"
  • Both native retweets and old school "RT"s are transformed to "retweeted"
  • Favourites are transformed to "favourited"
  • @ characters are transformed to "at"
  • characters are transformed to "hash tag"

  • URLs are ignored

The next version will introduce a basic REST API to allow on-the-fly configuration of some Emic 2 properties including voice and volume.

config.secure.json

This file is not included in the repo since it contains confidential oAuth keys and tokens. You will need to create your own config.secure.json and populate the fields with your data. This is a template you can edit:

{
   "twitterCredentials": {
      "consumer_key": "",
      "consumer_secret": "",
      "access_token_key": "",
      "access_token_secret": ""
   }
}

Parts

Wiring Connections

  • Pi 5V and Gnd to breakout board rails
  • Amp VDD and Gnd to breakout board rails
  • Emic 5V and Gnd to breakout board rails
  • Emic SOUT to Pi GPIO Rx
  • Emic SIN to Pi GPIO Tx
  • Emic SP- to Amp R-
  • Emic SP+ to Amp R+
  • Amp right speaker out to speaker (ignore if you're just using headphones)

The Finished Project

tweetie-pi's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.