[mary-dev] [Mary-dev] PronunciationModel not working

fxavier at ircam.fr fxavier at ircam.fr
Fri Jul 1 12:16:11 CEST 2011


Dear all,

I just noticed that my allophones.fr.xml file was not correct, indeed
there were some ":" after some phonemes. So after correcting this error,
PHONEMES -> ALLOPHONES works in the http interface.
However, TEXT->ALLOPHONES still doesn't work, as well as when running the
AllophoneExtractor. It is the same exception:


2011-07-01 11:48:58,375 [I/O dispatcher 6] INFO  marytts.R 0 New request
(input type "TEXT", output type "ALLOPHONES", effect "", audio "AU")
2011-07-01 11:48:58,375 [I/O dispatcher 6] WARN  marytts.Voice Could not
find default voice for locale fr
2011-07-01 11:48:58,375 [I/O dispatcher 6] INFO  marytts.server Read: salut
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 Handling
request using the following modules:
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 -
TextToMaryXML (marytts.modules.TextToMaryXML)
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 Next module:
TextToMaryXML
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 Handling
request using the following modules:
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 -
FrenchPhonemiser (marytts.language.fr.PhonemiserFR)
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 - Prosody
(marytts.modules.ProsodyGeneric)
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 -
PronunciationModel (marytts.modules.PronunciationModel)
2011-07-01 11:48:58,376 [I/O dispatcher 6] INFO  marytts.R 0 Next module:
FrenchPhonemiser
2011-07-01 11:48:58,865 [I/O dispatcher 6] INFO  marytts.R 0 Next module:
Prosody
2011-07-01 11:48:58,866 [I/O dispatcher 6] INFO  marytts.R 0 Next module:
PronunciationModel
2011-07-01 11:48:58,867 [I/O dispatcher 6] ERROR marytts.server Processing
failed.
java.lang.Exception: Module PronunciationModel: Problem processing the data.
	at marytts.server.Request.processOneChunk(Request.java:556)
	at marytts.server.Request.processOrLookupOneChunk(Request.java:394)
	at marytts.server.Request.process(Request.java:341)
	at
marytts.server.http.SynthesisRequestHandler.process(SynthesisRequestHandler.java:286)
	at
marytts.server.http.SynthesisRequestHandler.handleClientRequest(SynthesisRequestHandler.java:112)
	at
marytts.server.http.BaseHttpRequestHandler.handle(BaseHttpRequestHandler.java:150)
	at
org.apache.http.nio.protocol.BufferingHttpServiceHandler$RequestHandlerAdaptor.handle(BufferingHttpServiceHandler.java:193)
	at
org.apache.http.nio.protocol.SimpleNHttpRequestHandler.handle(SimpleNHttpRequestHandler.java:55)
	at
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.processRequest(AsyncNHttpServiceHandler.java:454)
	at
org.apache.http.nio.protocol.AsyncNHttpServiceHandler.inputReady(AsyncNHttpServiceHandler.java:320)
	at
org.apache.http.nio.protocol.BufferingHttpServiceHandler.inputReady(BufferingHttpServiceHandler.java:135)
	at
org.apache.http.impl.nio.DefaultNHttpServerConnection.consumeInput(DefaultNHttpServerConnection.java:179)
	at
org.apache.http.impl.nio.DefaultServerIOEventDispatch.inputReady(DefaultServerIOEventDispatch.java:145)
	at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:153)
	at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:314)
	at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:294)
	at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:256)
	at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:96)
	at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:556)
	at java.lang.Thread.run(Thread.java:679)
Caused by: java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
	at marytts.util.MaryUtils.string2locale(MaryUtils.java:473)
	at
marytts.modules.phonemiser.AllophoneSet.determineAllophoneSet(AllophoneSet.java:93)
	at marytts.modules.PronunciationModel.process(PronunciationModel.java:188)
	at marytts.server.Request.processOneChunk(Request.java:554)
	... 19 more
2011-07-01 11:48:58,869 [I/O dispatcher 6] INFO  marytts.server Request
couldn't be handled successfully.


I don't really understand this exception, why does PronunciationModel work
for PHONEMES->ALLOPHONES, but fail for TEXT->ALLOPHONES? It stops at
PronunciationModel, but it is the same portion of chain (TextToMaryXML ->
PhonemiserFR -> Prosody -> PronunciatinoModel). I precise that
TEXT->PHONEMES works of course.


When PHONEMES -> ALLOPHONES work:


2011-07-01 11:49:29,838 [I/O dispatcher 4] INFO  marytts.R 2 New request
(input type "PHONEMES", output type "ALLOPHONES", effect "", audio "AU")
2011-07-01 11:49:29,842 [I/O dispatcher 4] WARN  marytts.Voice Could not
find default voice for locale fr
2011-07-01 11:49:29,842 [I/O dispatcher 4] INFO  marytts.server Read:
<?xml version="1.0" encoding="UTF-8"?> <maryxml
xmlns="http://mary.dfki.de/2002/MaryXML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="0.5"
xml:lang="fr"> <p> <s> <t ph="_" pos="[ZTRM-&gt;EXCEPTION]"/> <t ph="saly"
pos="[NMS]"> salut </t> </s> </p> </maryxml>
2011-07-01 11:49:29,842 [I/O dispatcher 4] INFO  marytts.R 2 Handling
request using the following modules:
2011-07-01 11:49:29,842 [I/O dispatcher 4] INFO  marytts.R 2 - Prosody
(marytts.modules.ProsodyGeneric)
2011-07-01 11:49:29,842 [I/O dispatcher 4] INFO  marytts.R 2 -
PronunciationModel (marytts.modules.PronunciationModel)
2011-07-01 11:49:29,843 [I/O dispatcher 4] INFO  marytts.R 2 Next module:
Prosody
2011-07-01 11:49:29,849 [I/O dispatcher 4] INFO  marytts.R 2 Next module:
PronunciationModel
2011-07-01 11:49:29,849 [I/O dispatcher 4] WARN  marytts.Voice Could not
find default voice for locale fr
2011-07-01 11:49:29,854 [I/O dispatcher 4] INFO  marytts.server Request
handled successfully.


It shouldn't work as well!


Thanks in advance for the help,

Florent



More information about the Mary-dev mailing list