Giter Club home page Giter Club logo

marytts-txt2wav's Introduction

txt2wav: A MaryTTS example project

An example project demonstrating use of MaryTTS in a deliberately standalone application

Usage

usage: txt2wav [-i <FILE>] -o <FILE>
 -i,--input <FILE>    Read input from FILE
                      (otherwise, read from command line argument)
 -o,--output <FILE>   Write output to FILE

Source code

This project is implemented in different languages/build tools, please refer to the corresponding git branches:

marytts-txt2wav's People

Contributors

psibre avatar seblemaguer avatar

Stargazers

訴雨 avatar HazemMeqdad avatar Martin Lindbüchl avatar Nikolaus Schlemm avatar eshare avatar  avatar 庐山烟雨 avatar  avatar SUPERSOKOL avatar Todor Spasov avatar Alexandre Garito avatar AMirCaro12 avatar Cristiano Arêdes avatar  avatar Rafael Maribojoc avatar Artur Barseghyan avatar Joachim Rohde avatar  avatar Ernesto avatar  avatar Rick Burta avatar  avatar nadia avatar Christian Willms avatar Michael Hansen avatar Pedro Sanders avatar  avatar  avatar JasonP avatar  avatar  avatar  avatar  avatar Edmund avatar Yassine Maaroufi avatar  avatar Jacob Vigeveno avatar Marius avatar Mario Garcia avatar Rostislav avatar Michael Zemsky avatar Nick avatar GOXR3PLUS STUDIO avatar Railken avatar  avatar Anish Khattar avatar  avatar  厚黑人 avatar  avatar Theun Kohlbeck avatar Steven Edwards avatar Whats_in_name avatar Yurii Lahodiuk avatar

Watchers

James Cloos avatar  avatar Marc Schröder avatar  avatar  avatar Sathish Pammi avatar Ali Shah avatar Tristan H avatar Raddah avatar Gavin YAO avatar A. Egurtzegi avatar AMirCaro12 avatar  avatar  avatar

marytts-txt2wav's Issues

maven fails to build on linux (Ubuntu 12.04)

$ mvn package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building txt2wav 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ txt2wav ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /local/steiner/workspace/marytts-txt2wav/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ txt2wav ---
[INFO] Compiling 1 source file to /local/steiner/workspace/marytts-txt2wav/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.890s
[INFO] Finished at: Wed May 27 20:38:18 CEST 2015
[INFO] Final Memory: 29M/1931M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project txt2wav: Compilation failure
[ERROR] /local/steiner/workspace/marytts-txt2wav/src/main/java/de/dfki/mary/Txt2Wav.java:[69,37] error: incompatible types
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

gradle: is the mary depenency missing?

I was only able to get the gradle branch to work after adding the following to gradle.build

implementation group: 'de.dfki.mary', name: 'marytts-builder', version: '5.2', {
        exclude group: '*', module: 'groovy-all'
        exclude group: '*', module: 'mwdumper'
        exclude group: '*', module: 'sgt'
}

Did I do something wrong on my part or is this missing from the example?

Gradle: Cannot start MARY server

I'm having a hard time running the gradle sample. I get the following error:

C:\marytts-txt2wav>java -jar build/libs/txt2wav-1.0-SNAPSHOT.jar -i test.txt -o text.wav
Could not initialize MaryTTS interface: Cannot start MARY server
Exception in thread "main" marytts.exceptions.MaryConfigurationException: Cannot start MARY server
        at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:66)
        at de.dfki.mary.Txt2Wav.main(Txt2Wav.java:83)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
        at java.base/java.lang.String.substring(String.java:1873)
        at marytts.server.EnvironmentChecks.check(EnvironmentChecks.java:46)
        at marytts.server.Mary.startup(Mary.java:286)
        at marytts.server.Mary.startup(Mary.java:204)
        at marytts.util.MaryRuntimeUtils.ensureMaryStarted(MaryRuntimeUtils.java:72)
        at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:64)
        ... 1 more

I did see the marytts/marytts#690 issue but didn't quite get what the problem/fix was. In my build the txt2wav-1.0-SNAPSHOT.jar/META-INF/services/marytts.config.MaryConfig file contains:

marytts.voice.CmuSltHsmm.Config
marytts.language.en.EnglishConfig
marytts.config.MainConfig

Any clue what might be wrong?

BTW, I updated the sample project. Specifically I needed to update the gradle wrapper version since the old one didn't build the project for me.
Pull request: #7

Change language

Hi,

How do I change to one of the other languages included in MaryTTS? For example, how do I change from the default voice to a German voice?

If I try with marytts-lang-de in

   <dependency>
      <groupId>de.dfki.mary</groupId>
      <artifactId>marytts-lang-de</artifactId>
      <version>5.2-beta3</version>
   </dependency>

and
mary.setLocale(new Locale("de"));,
I get
Exception in thread "main" java.lang.IllegalArgumentException: No voice is available for Locale: de

Any suggestions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.