Nicostisch
Nicostisch

Reputation: 13

Marytts export voice to executable jar

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.

Upvotes: -1

Views: 121

Answers (1)

Koyasha
Koyasha

Reputation: 6857

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.

Upvotes: 0

Related Questions