[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#603897: speech-dispatcher w/ flite not working



Package: flite
Version: 1.4-release-2
Severity: important

On Squeeze Beta 1, I can't get flite module to work in speech-dispatcher.  espeak works fine however.

The contents of my /etc/speech-dispatcher/speechd.conf file:

CommunicationMethod "unix_socket"
SocketName "default"
LogLevel  3
LogDir  "default"
DefaultRate 0
DefaultPitch 0
DefaultVolume 100
DefaultVoiceType "MALE1"
DefaultLanguage "en"
AudioOutputMethod "alsa"
AddModule "flite"        "sd_flite"     "flite.conf"
AddModule "dummy"         "sd_dummy"      ""
DefaultModule flite
Include "/etc/speech-dispatcher/clients/*.conf"
Include "clients/*.conf"


The contents of /etc/speech-dispatcher/modules/flite.conf:

FliteMaxChunkLength    500
FliteDelimiters        ".?!;"
Debug 1


Steps to repeat:
1. /etc/init.d/speech-dispatcher start
2. spd-say hello
3. Note that speech-dispatcher CPU usage will spike to 100% and no audio will be heard.



The tail of /var/log/speech-dispatcher/flite.log:

 Wed Nov 17 23:11:55 2010 [645572]: In stripping ssml: |hello|
 Wed Nov 17 23:11:55 2010 [645613]: Flite: leaving write() normally
^M
 Wed Nov 17 23:11:55 2010 [645626]: Semaphore on

 Wed Nov 17 23:11:55 2010 [645688]: Printing reply: 701 BEGIN

 Wed Nov 17 23:11:55 2010 [645706]: Printed
 Wed Nov 17 23:11:55 2010 [645722]: Returned 5 bytes from get_part

 Wed Nov 17 23:11:55 2010 [645737]: Text to synthesize is 'hello'

 Wed Nov 17 23:11:55 2010 [645753]: Speaking in child...
 Wed Nov 17 23:11:55 2010 [645767]: Trying to synthesize text
VAL: tried to access cart in -1 type val




The tail of /var/log/speech-dispatcher/speech-dispatcher.log:

[Wed Nov 17 23:20:02 2010 : 762244] speechd:  Output module is logging to file /var/run/speech-dispatcher/.speech-dispatcher/log//flite.log
[Wed Nov 17 23:20:02 2010 : 762503] speechd:  Module flite loaded.
[Wed Nov 17 23:20:02 2010 : 772194] speechd: LINE here:|304 CANT LIST VOICES|
[Wed Nov 17 23:20:02 2010 : 772222] speechd:  Module flite started sucessfully with message:
.....
[Wed Nov 17 23:20:02 2010 : 776428] speechd:   Reading configuration for pattern *:gnomespeech:*
[Wed Nov 17 23:20:02 2010 : 776476] speechd:   Reading configuration for pattern emacs:*
[Wed Nov 17 23:20:02 2010 : 776537] speechd:   Reading configuration for pattern *:gnomespeech:*
[Wed Nov 17 23:20:02 2010 : 776645] speechd:   Reading configuration for pattern emacs:*
[Wed Nov 17 23:20:02 2010 : 776691] speechd:  Configuration has been read from "/etc/speech-dispatcher/speechd.conf"
[Wed Nov 17 23:20:02 2010 : 776718] speechd:  Speech Dispatcher Logging to file /var/run/speech-dispatcher/.speech-dispatcher/log//speech-dispatcher.log
[Wed Nov 17 23:20:02 2010 : 776733] speechd:   Speech Dispatcher started with 2 output modules
[Wed Nov 17 23:20:02 2010 : 776747] speechd:  Speech Dispatcher will use local unix socket: /var/run/speech-dispatcher/.speech-dispatcher/speechd.sock
[Wed Nov 17 23:20:02 2010 : 777175] speechd: Speech Dispatcher started and waiting for clients ...
[Wed Nov 17 23:20:09 2010 : 585349] speechd:   Connection closed




Other info:

cecil:~# dpkg --get-selections | grep flite
flite						install
flite1-dev					install
libflite1					install


Now if I change my speechd.conf to use espeak it works fine.
The reason why I'm using flite is because from my experience on Lenny, flite is more stable.  On Lenny,
espeak would get into a bad state in speech-dispatcher and spd would start consuming 100% CPU and not work
anymore.  On Lenny, flite did not have this issue.  Now on Squeeze, I'm getting a similar behavior.
espeak+speech-dispatcher on Squeeze will cause it to spike to 100% CPU sometimes.  I'm trying with flite in
the hope that it will be more stable just like it was on Lenny.  I also like the flite voice better.

So right now I pretty much cannot use speech-dispatcher because I can't find a module that will be stable with it.
-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages flite depends on:
ii  dpkg                      1.15.8.5       Debian package management system
ii  install-info              4.13a.dfsg.1-6 Manage installed documentation in 
ii  libasound2                1.0.23-2.1     shared library for ALSA applicatio
ii  libc6                     2.11.2-7       Embedded GNU C Library: Shared lib
ii  libflite1                 1.4-release-2  a small run-time speech synthesis 

flite recommends no packages.

Versions of packages flite suggests:
ii  alsa-base                  1.0.23+dfsg-2 ALSA driver configuration files

-- no debconf information



Reply to: