[raspberry-vi] New OMX Console Speech Build

  • From: Mike Ray <mike@xxxxxxxxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Thu, 29 Dec 2016 17:07:16 +0000

Hello folks

I have removed the outdated Raspbian images from the downloads page and
I have put up there:

* ArchREADME.md
* ArchLinuxARM-20161216.armv6.zip
* ArchLinuxARM-20161216.armv6.zip.sha1sum
* ArchLinuxARM-20161216.armv7.zip
* ArchLinuxARM-20161216.armv7.zip.sha1sum
* ilctts-1.0.0.tar.gz
* ilctts-1.0.0.tar.gz,.sha1sum
* piespeakup-1.0.0.tar.gz
* piespeakup-1.0.0.tar.gz.sha1sum

You may need to press refresh on the downloads page because I still
can't fix the cacheing.

I am updating the page about how to install non-stuttering console
speech, but this is a fast-track email for those who want to give Arch a
try.

*** IMPORTANT NOTE ***

This MIGHT fail at any step, as I am testing as I go.

Another note is I don't have control over whether your email client will
wrap the commands entered below, so please take care.

To grab the Arch images you can of course use wget on Linux. They were
zipped using 7z.

The images labelled as 'armv6' are for Pi before Pi2, and 'armv7' for
Pi2 or Pi3, and Pi Zero.

Both images have the same users/passwords and host name:

Host: alarmpi
User: alarm
Password alarm
Root password: root

SSH is enabled out-of-the-box but you CANNOT SSH in with the root user.

Sudo is not yet installed, you will need to install it or use the root
user and you will need to install base-devel and espeak. You will also
need wget because these are minimal images.

To sync the package database:

        sudo pacman -Sy

Install some stuff:

        sudo pacman -S --needed base-devel espeak wget

Then you will need to edit /etc/sudoers to give access to all members of
the 'wheel' group.

Now to install the OMX audio code library:

        wget http://www.raspberryvi.org/Downloads/ilctts-1.0.0.tar.gz
        tar zxvf ilctts-1.0.0.tar.gz
        cd ilctts-1.0.0
        ./configure
        make
        sudo make install

Note that if you have not yet installed sudo do the above as root.

You may find that make runs the configure stage again unless you do this:

        ./fix-timestamps.sha1sum

Between ./configure and make because git does something funky with
timestamps and I can't remember if I fixed them before I created the
dist file.

If make does run it again it doesn't matter, it is just annoying.

Now you probably need to run ldconfig if:

        ldconfig -p | grep ilctts

Returns nothing, so:

        sudo ldconfig

Now:

        ldconfig -p | grep ilctts

Should show the library now in the linking path cache.

Now to install piespeakup:

        wget http://www.raspberryvi.org/Downloads/piespeakup-1.0.0.tar.gz
        tar zxvf piespeakup-1.0.0.tar.gz
        cd piespeakup-1.0.0
        ./configure
        make
        sudo make install

Again make may run the configure stage again unless you run
./fix-timestamps.sh

You either now need to reboot to get the speakup_soft module loaded, or
load it manually:

        $ sudo modprobe speakup_soft

If you rebooted, when the Pi comes back, run:

        sudo systemctl enable piespeakup-1
        sudo systemctl start piespeakup

If it all worked you now have speech in an Arch console, via the 3.5MM
headphone jack.

To change to HDMI, edit:

        /etc/systemd/system/piespeakup.config

And change the line which reads:

        ExecStart=/usr/local/bin/piespeakup --device=local

To read:

        ExecStart=/usr/local/bin/piespeakup --device=hdmi

Do NOT remove the line which just has 'ExecStart=' and nothing else
above the line you changed.

Now restart piespeakup:

        sudo systemctl restart piespeakup

Or is it reload, I can't remember

Again, I haven't finished testing all this so it might collapse in a
heap but you can just rewrite the card if it does.

What files have been installed:

/usr/local/bin/piespeakup
/lib/systemd/system/piespeakup.service
/etc/systemd/system/piespeakup.conf
/usr/local/lib/ilctts.so
/usr/local/lib/ilctts.so.1
/usr/local/lib/ilctts.so.1.0.0
/usr/local/include/ilctts/ilctts_lib.h
/usr/local/include/ilctts/utils.h
/etc/modules-load.d/speakup_soft.conf
/etc/ld.so.conf.d/01-libilctts.conf

Raspbian has now changed to systemd and I no longer use SysVInit to load
piespeakup.

Please report any problems to me on this list.  I will continue to test
myself.

This work has been brought to you by a really smoooooth bottle of single
malt.

Mike


-- 
Michael A. Ray
Analyst/Programmer
Witley, Surrey, South-east UK

Eyes-free Linux:
http://eyesfreelinux.ninja/

Raspberry VI:
http://www.raspberryvi.org/

=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts:

  • » [raspberry-vi] New OMX Console Speech Build - Mike Ray