[raspberry-vi] Re: Linux voices

  • From: "Michael A. Ray" <mike.ray@xxxxxxxxxxxxxx>
  • To: raspberry-vi@xxxxxxxxxxxxx
  • Date: Thu, 14 Mar 2013 14:16:56 +0000

Chris,

It's normal to get these errors.  I don't know how to get rid of them.

You still got the speech though, right?

You could avoid these errors by doing this:

espeak "text to be spoken" 2> /dev/null

That directs error text to go to /dev/null which is just a 'bit bucket', 
a kind of black hole into which to throw stuff.

You could create an alias command for espeak and not have to type '2> 
/dev/null' after every command.

It's useful when running something that takes a long time, like:

sudo apt-get upgrade

To put a command which will tell you when it's done:

sudo apt-get upgrade && espeak "Finished upgrade" 2> /dev/null

Although in the above example the text will only be spoken if the 
command before the '&&' succeeds.

Mike


On 14/03/2013 01:38, Christopher Emery wrote:
> Hello all,
> I am new to this list and I just tryed this on my R-Pi with Raspbain
> (latest ver) installed espeak then tried
> espeak "hello world" and I got:
> pi@raspberrypi ~ $ espeak "hello world"
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
> ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
> playback stream
> ALSA lib pcm_direct.c:877:(snd1_pcm_direct_initialize_slave) slave plugin
> does not support mmap interleaved or mmap noninterleaved access
> ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave
> Cannot connect to server socket err = No such file or directory
> Cannot connect to server request channel
> jack server is not running or cannot be started
>
> Any ideas?
>
> Thank you.
>
> Sincerely in Christ,
> Christopher
>
>
> On Wed, Mar 13, 2013 at 11:42 AM, Michael A. Ray 
> <mike.ray@xxxxxxxxxxxxxx>wrote:
>
>> Hello Steve,
>>
>>
>> Personally my preference is for espeak.  It's very easy to get espeak
>> installed and make it say something.
>>
>> But we don't currently have any screen-readers reliably running.  I did
>> get yasr compiled and running but it is so unstable I can't recommend it
>> to anyone for use on the Pi.
>>
>> The best bet is SpeakUp! and there are a couple of us working on getting
>> that running.
>>
>> Back to espeak...it will run as a stand-alone tts application, or it is
>> usable by screen-readers via something called speech-dispatcher.
>>
>> If you're using Raspbian, then these steps should result in some speech:
>>
>> sudo apt-get install espeak
>>
>> Answer 'y' when asked if you want to continue, then when it has finished:
>>
>> espeak "Hello world"
>>
>> and you should hear speech, along with some nasty pops if you're
>> listening to analog audio from the 3.5mm jack.
>>
>> I have also used Festival:
>>
>> sudo apt-get install festival
>>
>> Then:
>>
>> festival --tts filename
>>
>> To read the contents of filename.  The festival voice is ok but not as
>> good as espeak imho.
>>
>> Mike
>
>
> ===========================================================
> 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
>
>

-- 
Michael A. Ray

Analyst/Programmer
Witley, Surrey, South-east UK

github username: cromarty
raspberrypi.org username: cromarty
Ham Radio Call-sign: G4XBF, licensed since 1982

'Entia non sunt multiplicanda praeter necessitatem' - Ockham's razor


Raspberry VI:
http://www.raspberryvi.org/
NVDA, the best free screen-reader in the world:
http://www.nvda-project.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: