meomeo 0.1.0 copy "meomeo: ^0.1.0" to clipboard
meomeo: ^0.1.0 copied to clipboard

Text to speech for Dart, powered by espeak-ng and ONNX Runtime.

meomeo #

pub package

Text to speech for Dart. Text in, audio out.

Uses espeak-ng for phonemization and ONNX Runtime for neural inference. Compatible with KittenTTS models.

Usage #

import 'package:meomeo/meomeo.dart';

final meo = Meo.init(
  'model.onnx',
  voicesPath: 'voices.npz',
  espeakDataPath: './espeak-data',
);

// Text to audio
final pcm = meo.speak('Hello world');

// Text to WAV file
meo.save('Hello world', 'output.wav');

// Switch voice
meo.speaker = 'Bruno';

// Cleanup
meo.dispose();

Setup #

  1. Install espeak phoneme data:
dart pub global activate espeak_cli
espeakc --all --exclude=fo --output ./espeak-data
  1. Download a KittenTTS model from HuggingFace:
    • kitten-tts-nano-0.8 (15M params, fast)
    • kitten-tts-mini-0.8 (80M params, better quality)

Voices #

Bella, Jasper, Luna, Bruno, Rosie, Hugo, Kiki, Leo

0
likes
0
points
--
downloads

Publisher

verified publishergau.moe

Text to speech for Dart, powered by espeak-ng and ONNX Runtime.

Repository (GitHub)
View/report issues

Topics

#tts #speech #ai #machine-learning

License

unknown (license)

Dependencies

archive, dort, espeak

More

Packages that depend on meomeo