Skip to main content

Text-to-speech with The Massively Multilingual Speech (MMS) project

Project description

ttsmms

Text-to-speech with The Massively Multilingual Speech (MMS) project

This project want to help you for use Text-to-speech model from MMS project in Python.

Support 1,107 Languages! (See support_list.txt)

  • VITS: GitHub
  • MMS: Scaling Speech Technology to 1000+ languages: GitHub

Google colab

Don't forget the TTS model in MMS project use CC-BY-NC license.

Install

pip install ttsmms

Usage

First, you need to download the model by

Linux/Mac

curl https://dl.fbaipublicfiles.com/mms/tts/lang_code.tar.gz --output lang_code.tar.gz

and extract a tar ball archive.

Linux/Mac

mkdir -p data && tar -xzf lang_code.tar.gz -C data/

and use code in python :D

from ttsmms import TTS

tts=TTS("model_dir_path") # your path dir that extract a tar ball archive
wav=tts.synthesis("txt")
# output:
# {
#    "x":array(wav array),
#    "sampling_rate": 16000
# }

tts.synthesis("txt",wav_path="example.wav")
# output: example.wav file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttsmms-0.5.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

ttsmms-0.5-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

Details for the file ttsmms-0.5.tar.gz.

File metadata

  • Download URL: ttsmms-0.5.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ttsmms-0.5.tar.gz
Algorithm Hash digest
SHA256 28550a8e2b7480372a2e31b6648c08c00b38cce1883aead8610573095d060d42
MD5 4269553fe5c831c5627c5311470880a7
BLAKE2b-256 45feaef6850f68c40a3ea83da79b11120c88524261e34520813d3078a49f2087

See more details on using hashes here.

File details

Details for the file ttsmms-0.5-py3-none-any.whl.

File metadata

  • Download URL: ttsmms-0.5-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ttsmms-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 94edd3cd2c1ef3d5b4bb89b56468ee89707ed0deef981052c6232628412f7ee9
MD5 96e8417ba0e92c11005b7000eb896312
BLAKE2b-256 2b1815b6b97f6360c6a30301bf814f7094af79d57e21ccd2d7f202141899b4b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page