[mary-dev] adding new NLPs to the system

fxavier at ircam.fr fxavier at ircam.fr
Thu Jun 16 15:48:27 CEST 2011


Dear all,

I've completed the developpement of my personnal NLP components for
french, now it is time to add them to the Mary system. Here is what I did:

- I copied/pasted all my java classes into the directory
$MARY_BASE/java/marytts/language/fr

- I created the fr.config file like this:


##########################################################################
# Copyright 2000-2011 DFKI GmbH.
# All Rights Reserved.  Use is subject to license terms.
#
# This file is part of MARY TTS.
#
# MARY TTS is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##########################################################################
# MARY TTS configuration file tr.config
##########################################################################

name = fr
tr.version = 4.3.0

provides = a-language

requires = \
    marybase


###########################################################################
############################## The Modules  ###############################
###########################################################################
modules.classes.list = \
        marytts.language.fr.PhonemiserFR \
	marytts.language.fr.getPOSorPhonemFR \
	marytts.language.fr.preprocessFR \
	marytts.language.fr.ProsodyFR \

	marytts.language.fr.preprocess.abrev2alpha \
	marytts.language.fr.preprocess.date2alpha \
	marytts.language.fr.preprocess.devis2alpha \
	marytts.language.fr.preprocess.dur2alpha \
	marytts.language.fr.preprocess.heur2alpha \
	marytts.language.fr.preprocess.mesu2alpha \
	marytts.language.fr.preprocess.sms2alpha \



- and started the maryserver.


Unfortunately I got this exception:

MARY server 4.3.0 starting as a HTTP server...Exception in thread "main"
java.lang.ClassNotFoundException: marytts.language.fr.PhonemiserFR
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186)
	at marytts.util.MaryUtils.instantiateObject(MaryUtils.java:117)
	at marytts.modules.ModuleRegistry.instantiateModule(ModuleRegistry.java:91)
	at marytts.server.Mary.startModules(Mary.java:143)
	at marytts.server.Mary.startup(Mary.java:307)
	at marytts.server.Mary.startup(Mary.java:223)
	at marytts.server.Mary.main(Mary.java:518)
Exception in thread "Thread-1" java.lang.IllegalStateException: MARY
system is not running
	at marytts.server.Mary.shutdown(Mary.java:393)
	at marytts.server.Mary$3.run(Mary.java:299)


stating that my class PhonemiserFR is not found. What is my mistake? Did I
miss something?


My config:
- Ubuntu 11.04
- Mary 4.3.0
- JDK jdk1.6.0_24


Best regards,





-----------------------------------------------------------



Florent XAVIER
Internship at Telecom Paristech
M2 ATIAM - UPMC/Ircam/Telecom Paristech
ING 5 - ECE Paris
firstname [dot] lastname [at] ircam [dot] fr
firstname [dot] lastname [at] telecom-paristech [dot] fr
tel:  + 33( 6 ) . 67 . 64 . 23 . 08


More information about the Mary-dev mailing list