Marytts export voice to executable jar

114 views Asked by At

I am currently trying to use marytts in my project. Now I am trying to export my project to an executable jar file. The problem is I always get this error:

java.lang.IllegalArgumentException: No such voice: bits3-hsmm

In IntelliJ everything works fine, the error only occurs when executing the exported jar file. I added the dependencies as shown in this photo

The marytts interface is working correctly only the voice makes troubles. A am using an downloaded version of the voice and marytts and they should be included in my exported .jar file.

1

There are 1 answers

0
Koyasha On BEST ANSWER

This looks like a product of IDEA-240253 (and related IDEA-116209).

IDE should be able to handle this automatically, but currently it isn't implemented.

You may keep separate JAR files and add them to the classpath of your JAR via Class-Path attribute in MANIFEST.MF file.