• Linux command line Text to Speach Reader that you can listen to

    04/03/2015 at 08:03 1 comment

    Herewith a Linux command line Gutenberg Press text to speech reader that is free to use and does not sound to horrible: ;-)

    You can also follow along while it is read.

    The script below gets rid of all the extra line breaks while text is being read. It takes everything before reading and converts it to lowercase letters forcing the reader to read uppercase words in the text file instead of spelling them.

    You can edit the script to remove any unwanted characters that make listening to a text reader a pain.

    Downside - the script does not allow you to jump to sections or "page" through the book - it starts at the beginning and ends when finished... Should not be difficult to implement a counter that saves where you were and then automatically continues where you left off...

    Installing whats needed:
    Before use install pico2wave using the following:

    sudo apt-get install libttspico0 libttspico-utils libttspico-data

    and then follow the instructions and install picospeaker sript:


    The command line script to use reader with Gutenberg Press text files:

    sed ':a;N;$!ba;s/\n\r/@/g' alice.txt | sed ':a;N;$!ba;s/\r\n/ /g' | sed ':a;N;$!ba;s/@/\n\r/g' | sed ':a;N;$!ba;s/_//g' | sed ':a;N;$!ba;s/\[/(/g' | sed ':a;N;$!ba;s/\]/)/g'  | while read line; do clear; echo "$line"; echo "$line" | sed 's/--/,, /g' | awk {'print tolower($_)'} | picospeaker -v 0.5 -r -15 -p 0 ; done

    1. Download a text book from Gutenberg Press and save it to a directory.

    2. Open the directory in a terminal and copy and paste the above script to the command line.

    3. Substitute "alice.txt" with the name of the text file you want to read. Press enter ;-)

    Sit back and relax while your computer reads the book to you. And if you want to, read along...

    NOTE: Please be fair, I am not a Linux guru and the script above was hacked together by trial and error from pieces all over the internet, your input on streamlining code will be appreciated ...

  • Lead screw alternative?

    01/19/2015 at 20:52 0 comments

    I have been thinking about where I could get cheap leadscrews to build a cnc machine at a reasonable price. Today I saw a picture of a car jack, the scissor type jacks you can get as standard equipment in every reasonably priced car.

    It dawned on me that the threaded rod used in the jack may might be used as a lead screw...

    Anyone want to give it a try?

  • Micro steppers

    11/27/2014 at 06:55 0 comments

    Just found some awsome micro stepper motors for cheap...

    NEW 10pcs Japan Nidec 4 Wire 2 Phase micro stepper motor D6xH5.5mm with plastic wheel stepping motorr for camera -US $4.69 - free shipping to South Africa.

    Found some info: 18 degrees per step, 20 steps per revolotion.

    Thinking to use them in a funny clock...