Bug 218597 - app-accessibility/espeak-1.36 - Can't access (r) file 'en_rules'
Bug#: 218597 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: williamh@gentoo.org Reported By: foad.nh@gmail.com
Component: Applications
URL: 
Summary: app-accessibility/espeak-1.36 - Can't access (r) file 'en_rules'
Keywords:  
Status Whiteboard: 
Opened: 2008-04-20 15:47 0000
Description:   Opened: 2008-04-20 15:47 0000
~x86 espeak 1.36   USE="portaudio pulseaudio"

When I use     # espeak "hello"     I can't hear anything,
But    # espeak -w 1.wav "hello"     makes a wave file that works!
I try   # espeak --compile=en     it says:  Can't access (r) file 'en_rules'

------- Comment #1 From William Hubbs 2008-04-20 19:35:40 0000 -------
I committed version 1.37 to the tree.

Also, I made a change in the ebuild so that you can only have either portaudio
or pulseaudio in use, but not both, since there is no way to support two audio
systems simultaneously in espeak.

Please test with 1.37 and let me know if you still have this issue.  If you
still can't compile the rules files, I need to know if you are attempting this
as a user, or as root, and what happens when you do this.

Thanks,

William

------- Comment #2 From Foad Nosrati Habibi 2008-04-21 11:38:38 0000 -------
Thank you William,
Now    $ espeak "text"     works all right, but still there is problem with
--compile as both user and root.
output as user:

foad@tux ~ $ espeak --compile=en
Can't access (r) file 'en_rules'

as root:

tux foad # espeak --compile=en
Can't access (r) file 'en_rules'

I test --compile with other languages but the result is same:

tux foad # espeak --compile=es
Can't access (r) file 'es_rules'

------- Comment #3 From William Hubbs 2008-04-26 05:31:41 0000 -------
The first part of this issue was that the pronounciation rules were not being
installed at all.  This has been fixed in 1.37-r1.  The rules are now
installed in /usr/share/espeak-data/dictsource.

Everything in the /usr/share/espeak-data directory can be customised on a
per-user basis, and this is how I recommend making changes if you are
interested in doing this since /usr/share/espeak-data will be over-written
each time you upgrade espeak.

Please check the espeak documentation for how to set this up and let me know
if you have any questions.

Thanks,

William

------- Comment #4 From Foad Nosrati Habibi 2008-05-02 12:46:01 0000 -------
Thank you William,

I test it,
Everything done in right way.

thanks