Results 1 to 5 of 5

Thread: Text-to-speech app 'festival' not working after installation.

  1. #1

    Default Text-to-speech app 'festival' not working after installation.

    Hi all,

    I am working on Gnome desktop. Had installed 'espeak' earlier but was not satisfied with the tone and pronunciation of the speech. After googling a bit came across 'fetival'. Installed it and overcame the initial working issues with help from one of the earlier mails in our forum pages here. After linking all the *.scm files from '/usr/share/festival' to '/usr/share/festival/lib' (as explained in a closed thread on the subject in these forums) and copying the dirs 'voices' and 'dicts' from '/usr/share/festival' to '/usr/share/festival/lib/' the 'festival' is still not working. Error is as below:
    Code:
    rsp@dell-linux:~> festival --tts Desktop/reign*
    Linux: can't open /dev/dsp
    rsp@dell-linux:~>
    I am stuck at this stage. How to facilitate it to open '/dev/dsp'.

    Would be grateful for help

    RSP2

  2. #2

    Default Re: Text-to-speech app 'festival' not working after installation.

    Quote Originally Posted by rsp2 View Post
    Code:
    rsp@dell-linux:~> festival --tts Desktop/reign*
    Linux: can't open /dev/dsp
    rsp@dell-linux:~>
    (I use KDE, but there seems nothing KDE-ish to what follows.)

    I got this error too after
    Code:
    zypper install festival
    A quick search revealed this: https://wiki.archlinux.org/index.php...a_Sound_Server

    As root, I did this (per your own suggestion):
    Code:
    mkdir /usr/share/festival/.lib
    cd /usr/share/festival/.lib
    ln -s ../* .
    cd ..
    mv .lib lib
    Then, as ordinary user:
    Code:
    >> ~/.festivalrc
    Open ~/.festivalrc with your favorite editor (I used mcedit) and add the next two lines:

    Code:
    (Parameter.set 'Audio_Method 'Audio_Command)
    (Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE")
    That should do it. Test with for example:
    Code:
    festival --tts <<<'Hello there.'
    Kind regards,

    Leen

  3. #3

    Default Re: Text-to-speech app 'festival' not working after installation.

    Hi Leen,

    Thanks a lot for your very useful solution. I do not get that error now. Obviously the '/dev/dsp' can be opened by it.

    But when I ask it to play a file from the home directory or Desktop, it makes some quirky sound and stops. Am I feeding it the file correctly?

    Code:
    rsp@dell-linux:~/Desktop> festival --tts reign-of-aurangzeb.odt
    rsp@dell-linux:~/Desktop>
    Shall be grateful for help.

    Profound Regards,

    RSP2

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,649

    Default Re: Text-to-speech app 'festival' not working after installation.

    It may note fully recognize odt files which would have embedded characters. Convert to pure text.

  5. #5

    Default Re: Text-to-speech app 'festival' not working after installation.

    Hi Gogalthorp,

    Thanks a lot for your quick response. Will do accordingly.

    Profound Regards,

    RSP2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •