freetts - text to speech setting mbrola voice com.sun.speech.freetts.ProcessException: Processing Utterance:

浪子不回头ぞ 提交于 2019-12-13 23:09:03

问题


Working with ubuntu linux version

Almost done with freetts setting with mbrola voices us1, us2 and us3, but finally getting exceptions.

When i run the below command, i could hear kevin's voice of sun microsystems.

    $ java -Dmbrola.base="/home/amphisoft4/Downloads/mbrola" -jar bin/FreeTTSHelloWorld.jar 

    All voices available:
    alan (time domain)
    kevin (general domain)
    kevin16 (general domain)
    mbrola_us1 (general domain)
    mbrola_us2 (general domain)
    mbrola_us3 (general domain

But if i specify mbrola_us1

    $ java -Dmbrola.base="/home/amphisoft4/Downloads/mbrola" -jar bin/FreeTTSHelloWorld.jar mbrola_us1

Im getting

All voices available:
    alan (time domain)
    kevin (general domain)
    kevin16 (general domain)
    mbrola_us1 (general domain)
    mbrola_us2 (general domain)
    mbrola_us3 (general domain)

    Using voice: mbrola_us1

    **Processing Utterance: com.sun.speech.freetts.ProcessException: Cannot start mbrola program: [Ljava.lang.String;@62ce0a
    Processing Utterance: com.sun.speech.freetts.ProcessException: Cannot start mbrola program: [Ljava.lang.String;@62ce0a**

回答1:


Does /home/amphisoft4/Downloads/mbrola/mbrola exist? If you enter:

/home/amphisoft4/Downloads/mbrola/mbrola -h 

does it work? Documentation has a note about creating this name from the distro binary. Did you build the binary and if not it may not be a binary compatable with your Ubuntu release.

hope that give you a clue.




回答2:


Finlay what worked for me

I am using ubuntu Created a folder called mbrola

  1. put downloaded mbrola-base for my operating system linux to it
  2. put downloaded us1, us2, us3 extracted folders to this folder
  3. Install the mbrola in ubuntu by command line. sudo apt-get istall mbrola

    After installation use this commad to check where your files has located dpkg -L mbrola

  4. Copied /usr/bin/mbrola file to the above mbrola folder

  5. Update the program with the path to above program System.setProperty("mbrola.base", "/home/ngs/INCUBATOR/egg-8/libries/MBROLA/mbrola");


来源:https://stackoverflow.com/questions/20323703/freetts-text-to-speech-setting-mbrola-voice-com-sun-speech-freetts-processexce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!