The MaryTTS TextGrid serializer is an artefact compatible with MaryTTS (>= 6.x) to export/import TextGrid file into the MaryTTS system. It is using JTGT as a TextGrid backend conversion: https://github.com/hbuschme/TextGridTools
As duration is not supported yet in the main marytts part, all durations are set to 1s for the visualization purpose
To declare a depency on the MaryTTS TextGrid serializer you can do it:
- in the
pom.xml
for Maven:
<repositories>
<repository>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>de.dfki.marytts</groupId>
<artifactId>marytts-tgt-serializer</artifactId>
<version>0.5</version>
</dependency>
</dependencies>
- in the
build.gradle
for Gradle
repositories {
jcenter()
}
dependencies {
compile group: 'de.dfki.marytts', name:'marytts-tgt-serializer', version: '0.5'
}
The artefact should be in the classpath !
Then to use it, you simply have to specify a configuration based on it like, for example, the following one:
# How to extract the input
input_serializer=marytts.io.serializer.TextSerializer
# How to render the output
output_serializer=marytts.io.serializer.MaryTextGridSerializer
# Current locale
locale=en_US
# List of modules
modules=marytts.language.en.Preprocess \
marytts.language.en.JTokenizer \
marytts.modules.nlp.OpenNLPPosTagger \
marytts.modules.nlp.JPhonemiser