yoruba_tts 0.0.1 yoruba_tts: ^0.0.1 copied to clipboard
Flutter package to generate speech from text using the Meta's mms-tts-yor model on HuggingFace API
Yoruba TTS flutter package #
Check out Hugging Face homepage
Getting Started #
With Dart
dart pub add yoruba_tts
dart pub get
With Flutter
flutter pub add yoruba_tts
flutter pub get
How to use #
See example for more use case information.
void main() async {
// set file path
final path = "<file path to save speech .flac file>";
final accessToken = "<Access token generated from Hugging Face Website>";
final text = "Ẹ̀yà Yorùbá ni mo ti wá";
YorubaTts.generate(accessToken: accessToken, text: text, filePath: path);
// do play, upload or do whatever with .flac file
}
Credit #
The credit for the model belongs to Vineel Pratap et al. from Meta AI.
@article{pratap2023mms,
title={Scaling Speech Technology to 1,000+ Languages},
author={Vineel Pratap and Andros Tjandra and Bowen Shi and Paden Tomasello and Arun Babu and Sayani Kundu and Ali Elkahky and Zhaoheng Ni and Apoorv Vyas and Maryam Fazel-Zarandi and Alexei Baevski and Yossi Adi and Xiaohui Zhang and Wei-Ning Hsu and Alexis Conneau and Michael Auli},
journal={arXiv},
year={2023}
}
Huge Shout out to Surajudeen Akande, this package is inspired by the Node.Js version be built.