A JVM wrapper around MBROLA diphone synthesizer.
mbrola-jvm-linux
,mbrola-jvm-macos
,mbrola-jvm-windows
contain the corresponding native MBROLA executables.mbrola-jvm
combines the three platform specific modules.mbrola-jvm-voices
contains all available voices for MBROLA.
Add a dependency to a platform specific executable
<dependency>
<groupId>guru.nidi</groupId>
<artifactId>mbrola-jvm-macos</artifactId>
<version>0.0.1</version>
</dependency>
or to all platforms
<dependency>
<groupId>guru.nidi</groupId>
<artifactId>mbrola-jvm</artifactId>
<version>0.0.1</version>
</dependency>
Add a dependency to the voices
<dependency>
<groupId>guru.nidi</groupId>
<artifactId>mbrola-jvm-voices</artifactId>
<version>0.0.1</version>
</dependency>
or copy the desired folder(s) from mbrola-jvm-voices src/main/resources
directly into your project.
Use it and have fun:
fun sayOneInDutch() {
Mbrola(Phonemes.fromString("e n"), Voice.fromClasspath("nl1/nl1")).run().use {
it.play(true)
}
}