[mary-users] How to build a voice with style attribute (HMM)

Marc Evrard marc.evrard at limsi.fr
Fri Mar 1 16:08:27 CET 2013


Hello Marcela,

Thank you for your quick response and sorry for coming back so late.  I was busy on some other projects and I wanted to make sure I could solve all the problems before coming back to you and the user list.  I will share here some of the troubles we experienced and the solutions we found.

The "styleDefinition.txt" filename must be included in the "AllophoneExtractor" with the complete path!
The code in "AllophonesExtractor.java" suggest that the default path of the styleDefinition.txt file is in the "mary" folder rather than the main voice building directory (CONFIGDIR variable defined in "DatabaseLayout.java").  Anyway this part of the code managing the "styleDefinition.txt" file was inactivated (commented) in the original code (Mary 5.0), making the file complete path in the "AllophonesExtractor" settings required.

Also, after editing the settings, the "VoiceImport" module needs to be restarted, since it takes the "styleDefinition.txt" file into account only at startup.

Later during the training the "PhoneUnitFeatureComputer" failed, because the label included in the "prompt_allophones" XML files was refused.  We realized that the "style" label wasn't included in the MaryXML Schema Definition file ($MARYBASE/marytts-common/src/main/resources/marytts/util/dom/MaryXML.xsd).
We then added the line:
"<xsd:attribute name="style" type="xsd:string"/>"
in the "prosody" element definition to solve the problem.

The further steps could then well be processed until the end of the HMM training process.  Although we weren't yet able to verify that the style was well taken into account during the training.

Thanks again for your help!
Best regards,
Marc


On Feb 6, 2013, at 15:39 , Marcela Charfuelan wrote:

> Dear Marc Evrard,
> 
> The names of your files in the text directory should reflect what the styles file indicate, for example if you have files like:
> file_mydb_aaa_001.txt
> file_mydb_aaa_002.txt
> file_mydb_aaa_003.txt
> ...
> file_mydb_bbb_001.txt
> file_mydb_bbb_002.txt
> file_mydb_bbb_003.txt
> ...
> 
> then the styleDefinition.txt file in your voice building directory (not in the text dir) should contain (supposing that aaa correspond to angry and bbb to happy):
> 
> file_mydb_aaa_* = angry
> file_mydb_bbb_* = happy
> 
> 
> The style feature has been used in building unit selection voices, but so far we have not used in the building of HMM voices.
> 
> Regards,
> Marcela.
> 
> 
> On 02/04/2013 05:46 PM, Marc Evrard wrote:
>> Hello,
>> 
>> I'm currently trying to build a voice in MaryTTS using 2 almost identical corpora recorded with different style attributes.
>> The building of the individual corpora as different voices without any style attribute is working fine, but I would like to build a single voice using these 2 corpora.
>> I couldn't find any info in the wiki (dfki and Github), nor in the mary-users mailing lists about this procedure.
>> In the java source code of the AllophoneExtractor, I saw that a ".styleDefinitionFile" file must be include somewhere.  I assumed it needs to be included in the "text" folder using the same name as the corresponding sentence, but doing so doesn't change the XML output file in the "prompt_allophones" folder.
>> Could someone give me a hint, or a link to some documentations describing this process?
>> 
>> Thanks in advance!
>> Best regards,
>> Marc
>> _______________________________________________
>> Mary-users mailing list
>> Mary-users at dfki.de
>> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-users
>> 
>> 
> 
> 
> -- 
> _______________________________________________________________
> Marcela Charfuelan, Researcher, DFKI GmbH
> Projektbuero Berlin, Alt-Moabit 91c, D-10559 Berlin, Germany
> Phone: +49 (0)30 23895-1821
> URL  :http://www.dfki.de/~charfuel/
> _______________________________________________________________
> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
> Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern
> Geschaeftsfuehrung:
> Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
> Dr. Walter Olthoff
> Vorsitzender des Aufsichtsrats:
> Prof. Dr. h.c. Hans A. Aukes
> Amtsgericht Kaiserslautern, HRB 2313
> _______________________________________________________________
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/mary-users/attachments/20130301/57c24bf0/attachment.htm 


More information about the Mary-users mailing list