guj_tts 0.0.2 copy "guj_tts: ^0.0.2" to clipboard
guj_tts: ^0.0.2 copied to clipboard

Flutter package to generate speech from text using the Meta's mms-tts-guj model on HuggingFace API

Guj TTS Flutter Package #

Check out Hugging Face homepage

Getting Started #

With Dart

dart pub add guj_tts
dart pub get

With Flutter

flutter pub add guj_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 = "વરસાદ બન્યો વિલન";
  GujTTS.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}
}
0
likes
150
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package to generate speech from text using the Meta's mms-tts-guj model on HuggingFace API

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

dio, dio_cache_interceptor, flutter

More

Packages that depend on guj_tts