Hi,

As everybody, i must switch to MarySpeech ! But i get an error :(

I've put all voices jar in MRL/libraries/jar and to be sure in MRL/Mary/lib . I've also put the voice folder in mary/lib folder .

here is the code i've run :

 

Runtime.createAndStart("mouth", "MarySpeech")
mouth.setLanguage("fr")
mouth.setVoice("upmc-pierre")
mouth.speak("salut")

And this is the error i get :

[python.interpreter.3] [INFO] Runtime.createService mouth
[python.interpreter.3] [INFO] getMessageSet loading 166 non-sub-routable methods
[python.interpreter.3] [WARN] no such method Runtime.registered(MarySpeech) :  - attempting upcasting
[python.interpreter.3] [WARN] ouch! need to search through 251 methods
[gui] [WARN] no such method GUIService.registered(MarySpeech) :  - attempting upcasting
[python] [WARN] no such method Python.onRegistered(MarySpeech) :  - attempting upcasting
[gui] [WARN] ouch! need to search through 191 methods
[python] [WARN] ouch! need to search through 171 methods
[python] [INFO] exec(String)
from org.myrobotlab.service import MarySpeech
mouth = Runtime.getService("mouth")
[webgui] [WARN] no such method WebGui.onRegistered(MarySpeech) :  - attempting upcasting
[webgui] [WARN] ouch! need to search through 188 methods
[webgui] [INFO] subscribe [mouth/publishStatus ---> webgui/onStatus]
[webgui] [INFO] subscribe [mouth/publishState ---> webgui/onState]
[AWT-EventQueue-0] [INFO] class org.myrobotlab.control.MarySpeechGUI not found
[AWT-EventQueue-0] [INFO] could not construct a org.myrobotlab.control.MarySpeechGUI object - creating generic template
[AWT-EventQueue-0] [INFO] subscribe [mouth/publishStatus ---> gui/getStatus]
[python.interpreter.3] [INFO] loading language resources for de from jtok/de
[python.interpreter.3] [INFO] loading language resources for en from jtok/en
[python.interpreter.3] [INFO] loading language resources for it from jtok/it
[python.interpreter.3] [INFO] loading language resources for en from jtok/en
[python.interpreter.3] [INFO] loading language resources for en from jtok/en
[python.interpreter.3] [INFO] loading language resources for en from jtok/en
[python.interpreter.3] [INFO] speakInternal Blocking false Text: salut
[python.interpreter.3] [ERROR] python error PyException - null Traceback (most recent call last):
  File "<string>", line 4, in <module>
    at marytts.unitselection.data.DiphoneUnitDatabase.getCandidates(DiphoneUnitDatabase.java:84)

    at marytts.unitselection.select.viterbi.Viterbi.apply(Viterbi.java:206)

    at marytts.unitselection.select.UnitSelector.selectUnits(UnitSelector.java:117)

    at marytts.unitselection.UnitSelectionSynthesizer.synthesize(UnitSelectionSynthesizer.java:164)

    at marytts.modules.synthesis.Voice.synthesize(Voice.java:521)

    at marytts.modules.Synthesis.synthesizeOneSection(Synthesis.java:252)

    at marytts.modules.Synthesis.process(Synthesis.java:222)

    at marytts.server.Request.processOneChunk(Request.java:547)

    at marytts.server.Request.processOrLookupOneChunk(Request.java:385)

    at marytts.server.Request.process(Request.java:327)

    at marytts.LocalMaryInterface.process(LocalMaryInterface.java:438)

    at marytts.LocalMaryInterface.generateAudio(LocalMaryInterface.java:348)

    at org.myrobotlab.service.MarySpeech.speakInternal(MarySpeech.java:121)

    at org.myrobotlab.service.MarySpeech.speak(MarySpeech.java:195)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: gnu/trove/TIntHashSet

    at org.python.core.Py.JavaError(Py.java:546)
    at org.python.core.Py.JavaError(Py.java:537)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
    at org.python.core.PyObject.__call__(PyObject.java:478)
    at org.python.core.PyObject.__call__(PyObject.java:482)
    at org.python.core.PyMethod.__call__(PyMethod.java:141)
    at org.python.pycode._pyx3.f$0(<string>:4)
    at org.python.pycode._pyx3.call_function(<string>)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1386)
    at org.python.core.Py.exec(Py.java:1430)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:267)
    at org.myrobotlab.service.Python$PIThread.run(Python.java:161)
Caused by: java.lang.NoClassDefFoundError: gnu/trove/TIntHashSet
    at marytts.unitselection.data.DiphoneUnitDatabase.getCandidates(DiphoneUnitDatabase.java:84)
    at marytts.unitselection.select.viterbi.Viterbi.apply(Viterbi.java:206)
    at marytts.unitselection.select.UnitSelector.selectUnits(UnitSelector.java:117)
    at marytts.unitselection.UnitSelectionSynthesizer.synthesize(UnitSelectionSynthesizer.java:164)
    at marytts.modules.synthesis.Voice.synthesize(Voice.java:521)
    at marytts.modules.Synthesis.synthesizeOneSection(Synthesis.java:252)
    at marytts.modules.Synthesis.process(Synthesis.java:222)
    at marytts.server.Request.processOneChunk(Request.java:547)
    at marytts.server.Request.processOrLookupOneChunk(Request.java:385)
    at marytts.server.Request.process(Request.java:327)
    at marytts.LocalMaryInterface.process(LocalMaryInterface.java:438)
    at marytts.LocalMaryInterface.generateAudio(LocalMaryInterface.java:348)
    at org.myrobotlab.service.MarySpeech.speakInternal(MarySpeech.java:121)
    at org.myrobotlab.service.MarySpeech.speak(MarySpeech.java:195)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
    ... 12 more
 

Thx for your help :D

moz4r

7 years 11 months ago

Hi dude ! try this voice syntaxe : upmc-pierre-hsmm

this is to tweak a little to female

mouth.setAudioEffects("F0Add(f0Add=90.0)+TractScaler(amount=1.2)")