[raspberry-vi] OMX audio code deadlock bug progress

  • From: Mike Ray <mike@xxxxxxxxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Fri, 13 Oct 2017 06:41:59 +0100

Hello

Since I released it, folks have been reporting that there is a tendency
for the speech to periodically fail when running my OMX audio code
library in the console.

I have partially re-written the library to remove an unnecessary ring
buffer and use the OMX libraries own queueing mechanism exclusively.

Now I did this a few weeks ago.

But I have just debugged the new version of piespeakup, called
piespeakup2 and got it to work in an Arch Linux image I am working with.

I will shortly put an Arch image on the site which uses this new version
of the audio code.

This will be a minimal image with just enough software to connect over
ssh, or to use the console directly and see if SpeakUp is more reliable
with this version.

I would like folks to use it and see if the periodic 'deadlock' bug
really has gone away and the speech is more reliable.

I have also taken the opportunity to give the library a more sensible
name. Before it was called 'libilctts', for 'integration layer client
text-to-speech'.

But, strictly speaking, the library can be used to queue any PCM data
into the GPU, not just data from espeak. So I have renamed it
'libpipcmrender', for 'Pi pulse code modulation render'.

Next task, the speech-dispatcher module to use it and then we can drop
the use of USB dongles completely.

To give newer folks who have joined recently a bit more background...

I wrote a library to render the speech from the console screen reader
'SpeakUp' directly on the Raspberry Pi GPU, rather than with ALSA.

This is because the ALSA driver is broken for espeak and stutters very,
very badly and regularly crashes the kernel.

I will probably now refresh the pages on the Web site which explain this
and how to use it, and make the newer versions of both the library and
the connector (piespeakup2) available on the site as foon as I can
confirm the bugs are gone.

Mike




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

"Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away." -- A. de Saint-Exupery


https://cromarty.github.io/
http://eyesfreelinux.ninja/
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: