Results 1 to 10 of 10

Thread: Using Mbrola with Espeak

  1. #1
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Using Mbrola with Espeak

    I've been trying multiple ways of example commands I find on the internet to use espeak with mbrola, none of which have worked.


    $ espeak -v mb-en1 "some text" | mbrola -e /usr/share/espeak-data/voices/mb/mb-en1 - - | aplay -r16000 -fS16
    Binary number format error
    You are probably using a version of /usr/share/espeak-data/voices/mb/mb-en1 incompatible
    with your machine architecture.
    Get the right one from the MBROLA project homepage :
    http://tcts.fpms.ac.be/synthesis
    aplay: playback:2297: read error


    I am trying to develop my software to use mbrola voices and epeak because it gives better command line options, but if I can't make this work from the command line, I am unable to further my software. I've started a google code project, but I want it to be decent before I release it out to the public. Would someone help me understand how all this works? BTW, I am using 64-bit Ubuntu, and it gave me an error about about machine architecture.
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  2. #2

    Re: Using Mbrola with Espeak

    $
    espeak -v mb-en1 "some text" | mbrola -e /usr/share/espeak-data/voices/mb/mb-en1 - - | aplay -r16000 -fS16
    Binary number format error
    You are probably using a version of /usr/share/espeak-data/voices/mb/mb-en1 incompatible
    with your machine architecture.
    Get the right one from the MBROLA project homepage :
    http://tcts.fpms.ac.be/synthesis
    aplay: playback:2297: read error
    See Question 2 of their FAQs.

    Question 2 answer:

    You are not providing a MBROLA database to the software. Many possible causes: either you got quite an old MBROLA database, so fetch a new one here , or you gave a wrong file. A typical error is to type "mbrola fr1 bonjour.pho test.wav" instead of "mbrola fr1/fr1 bonjour.pho test.wav". Another common problem is to FTP your database across your local net, and forget to use the BINARY mode while transferring.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  3. #3
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Using Mbrola with Espeak

    So could you show me an example of how to use mbrola voices with espeak properly?
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  4. #4
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Using Mbrola with Espeak

    bump!
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  5. #5

    Re: Using Mbrola with Espeak

    So could you show me an example of how to use mbrola voices with espeak properly?
    Have you tried the 3 solutions to solve your problem? If you have and still have problems, I would write to espeak and ask them for help.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  6. #6
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Using Mbrola with Espeak

    I found the answers I need in /usr/share/doc.
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  7. #7

    Re: Using Mbrola with Espeak

    I found the answers I need in /usr/share/doc.
    Could you please explain what you did to resolve your problem, so that others may benefit from your experience. Thank you.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  8. #8
    Join Date
    Oct 2007
    Location
    wrong planet
    Beans
    746
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Using Mbrola with Espeak

    Quote Originally Posted by Sef View Post
    Could you please explain what you did to resolve your problem, so that others may benefit from your experience. Thank you.
    Yes, to start, the /usr/share/doc directory is a great source of information. It should be bookmarked in nautilus, so that it shows up in the left pane and under "Places" on the Gnome Panel. Have a look at /usr/share/doc/espeak and /usr/share/doc/mbrola. There are some html files in there as well that will open in Firefox. Most of everything you have installed should have a directory under /usr/share/doc with documentation that can be read.

    What I discovered is that none of the Ubuntu packages in Karmic contain the mbrola voices. They must be downloaded as described in /usr/share/espeak/mbrola.html

    Also, what I said about Mbrola voices not being included in the repos applied to Karmic. Fred on the Ubuntu Mailing List confirmed that the voices are included in the repos for Lucid.
    Linux Advanced Guides and News!
    http://linuxinnovations.blogspot.com/

    Green means go, Yellow means faster, Red means don't stop.

  9. #9
    Join Date
    Feb 2008
    Location
    readlink("/proc/self/exe"
    Beans
    1,120
    Distro
    Ubuntu Development Release

    Wink Re: Using Mbrola with Espeak

    I'm on Lucid, and for me, this works:

    Code:
    espeak -v mb-en1 "Hello World" | mbrola -e /usr/share/mbrola/voices/en1 - - | aplay -r16000 -fS16
    
    
    Note:    /usr/share/mbrola/voices/en1
    and not: /usr/share/espeak-data/voices/mb/mb-en1
    Last edited by WitchCraft; April 25th, 2010 at 02:53 AM.
    In a world without walls and fences, who needs Windows and Gates?
    Linux is like a wigwam.... no Gates, no Windows but Apache inside!
    http://www.debianadmin.com
    apt-get install libstdc++6-4.3-doc

  10. #10
    WasMeHere is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    May 2008
    Location
    Sverige
    Beans
    1,133

    Re: Using Mbrola with Espeak

    Thank you WitchCraft,

    Your example helped me make the computer speak (in Lucid). I use the following one-line script files for Swedish.
    'male'
    Code:
    espeak -v mb-sw1 "$*" 2>/dev/null | mbrola -e /usr/share/mbrola/voices/sw1 - - | aplay -r14000 -fS16 2>/dev/null
    'female'
    Code:
    espeak -v mb-sw2 "$*" 2>/dev/null | mbrola -e /usr/share/mbrola/voices/sw2 - - | aplay -r14000 -fS16 2>/dev/null
    But for many purposes the following simple aliases work well. They make clear voices, although with 'immigrant accents'.

    Code:
    alias säg='espeak -v sv -p 65 -s 120 -k10 -a 150 >/dev/null 2>/dev/null '
    alias bas='espeak -v sv -p 45  -k10 -a 150 >/dev/null 2>/dev/null '
    Have fun/Olle

Bookmarks

Posting Permissions

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