projects‎ > ‎

Raspberry Pi

Project Index:

The software package Festival provides a basic TTS service for Linux.  The text only web browser lynx allows webpages to be downloaded.  Some sed parsing takes out most of the junk characters and sends the page text to festival.

lynx -dump -nonumbers -notitle$1 > orig.txt
sed 's/[\^[]//g' orig.txt > second.txt
sed -e 's/\(.*\)\.\([0-9]*\)/\1./' second.txt > out.txt
rm orig.txt second.txt
festival --tts out.txt
rm out.txt

As you can see there are some text files that store the data during the process.  If you stop the playback with Ctrl+C then out.txt will still exist in the directory the script is in.  To make this a script, copy and paste the lines into a text editor, save the file and then in terminal:  chmod +x scriptname Replace scriptname with the file name you saved in the text editor.  Execute from terminal with:  ./scriptname page  Replace page with the Wikipedia page name.  As the video states, make sure you know the format of the exact page or it won't load.  The Space Shuttle Wikipedia page is written as: space_shuttle so to use this script to read the Space Shuttle page the syntax is:  ./scriptname space_shuttle

Temperature Logging to Google Spreadsheet

Using Adafruit's tutorial on sending temperature data from a DHT11 sensor to a Google Docs spreadsheet in real time with the Raspi.

Debian GPIO

I'm running the 6-19-04-2012 build from the official Raspberry Pi download site.  The first GPIO library I found was on the GPIO page.  It's a Python library located here.  The videos below are using version 0.1.0 of that library.  I like the Quick2Wire Python library a bit better.  It requires their GPIO Admin tool to be installed also.  There is bash scripting ability as well.  I've attached to this page the Python and bash scripts that are shown in the videos below.


The latest build of this writing is R11170 found on root9's site here.  The video below is running one build prior to R11170, there has been quite a bit of difference between the two as shown in the second video below.

3.5" TFT LCD Display

Adafruit's 3.5" TFT LCD screen with Raspberry Pi:



This project is an exercise in sensor fusion.  piTED is a fake AI using the Raspberry Pi as a brain, Parallax sensors and Python to make it all come together.



Festival Text to Speech

Robert Svec,
Jun 10, 2012, 10:11 AM
Robert Svec,
Jun 10, 2012, 10:11 AM