openjtalk 1.0.0 openjtalk: ^1.0.0 copied to clipboard
A Dart library for accessing common Open JTalk APIs using, FFI.
import 'package:openjtalk/openjtalk.dart';
Future main() async {
var talk =
openjtalkInitialize('mei_normal', 'assets/dic_utf_8', 'assets//voice');
print(talk.getVoice());
print(talk.getSamplingFrequency());
print(talk.getSpeed());
print(talk.geVoiceDir());
print(talk.geVoicePath());
print(talk.getVoiceName());
talk.speakAsync('聞こえますか?');
while (talk.isSpeaking() != 0) {}
openjtalkClear(talk);
}