Use a dummy implementation of Narrator library

This commit is contained in:
Duy Tran Khanh committed 2021-02-16 17:29:04 +07:00
1 parent 8309b43732
commit 3e425bbc36
6 files changed
+70

No files matched your search

@@ -0,0 +1,17 @@
package com.mojang.text2speech;
public class Text2Speech {
public static void main(final String[] args) {
System.setProperty("jna.library.path", "./src/natives/resources/");
final Narrator narrator = Narrator.getNarrator();
narrator.say("This is a test", false);
while (true) {
try {
Thread.sleep(100);
} catch (final InterruptedException e) {
e.printStackTrace();
}
}
}
}