espeak_cli
CLI tool for compiling espeak-ng phoneme data.
Downloads espeak-ng source automatically on first run. Compiled data is platform-independent and works with the espeak package.
Install
dart pub global activate espeak_cli
Usage
espeakc # English only
espeakc --all --exclude=fo # All languages except Faroese
espeakc --languages=en,fr,de,ja # Specific languages
espeakc --output ./my-data # Custom output directory
espeakc --force # Recompile
Using the compiled data
import 'package:espeak/espeak.dart';
final espeak = Espeak.init('./espeak-data');
print(espeak.phonemize('Hello world')); // həlˈoʊ wˈɜːld