Skip to content

rahul1205/TwitterX

Repository files navigation

TwitterX

A command line utility that can be used to tweet an input from microphone. You'll never have to type again.!!!

Requirements

(As of now, the instruction set added is only for Ubuntu 14.04 and higher)

To use all of the functionality of the library, you should have:
Python 2.6, 2.7, or 3.3+ (required)
PyAudio 0.2.11+ (required only if you need to use microphone input, Microphone)
PocketSphinx (required only if you need to use the Sphinx recognizer, recognizer_instance.recognize_sphinx)
Google API Client Library for Python (required only if you need to use the Google Cloud Speech API, recognizer_instance.recognize_google_cloud)
FLAC encoder (required only if the system is not x86-based Windows/Linux/OS X)

A hassle free guide to quick install from scratch on Python 2.7.6

Installing pip

sudo apt-get install python-dev
sudo apt-get install python-setuptools
easy_install pip

Installing PyAudio latest Version

To correctly upgrade/install PyAudio, download and extract the 0.2.11 version from here http://www.portaudio.com/download.html and run the following set of commands from inside the portaudio directory
./configure && make
sudo make install
sudo pip install pyaudio --upgrade

Installing Speech Recognition Module and setting up google API

pip install SpeechRecognition
sudo pip install google-api-python-client
Note-Google API has some limit on number of inputs per day. To install other servers when google API is unavailable, refer to https://github.com/Uberi/speech_recognition

Installing Twitter API for python

sudo pip install twython

Installing ALSA libraries

sudo apt-get install libasound-dev

Twitter Setup

You need a valid twitter account to tweet and need to implement the following steps from your account.
 1) Go to https://apps.twitter.com
 2) Create a new app and generate your Consumer Key, Consumer Secret, Access token and Access token secret and replace these values under TwitterBot/letsTweet.py
 3) Save the changes.

Note-Tweets cannot be duplicated.

For language changes and other settings in speech to text conversions, view https://github.com/Uberi/speech_recognition/blob/master/reference/library-reference.rst

Finally, execute the newTweet.py under MyTwitterBot/TwitterBot using command "python newTweet.py".
P.S. Remember to say 'exit' if you want to quit without tweeting

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors