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)
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
from ttsmms import download
dir_path = download("eng","./data") # lang_code, dir for save model
or download file by yourself
Linux/Mac
- download
curl https://dl.fbaipublicfiles.com/mms/tts/lang_code.tar.gz --output lang_code.tar.gz
- 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(dir_path) # or "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
Metadata
Release files for ttsmms 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ttsmms-0.7.tar.gz | 26.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ttsmms-0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.2 kB
Release files / ttsmms-0.7.tar.gz
| Download URL | ttsmms-0.7.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9d1ca9d239551a39bc2194c208d999ffee05242e90da09af7517b1ff9fd7575
|
|
BLAKE2b-256 checksum How to use checksums |
4d076075aa0b1c4574764e898fea2ee4c125cb4270f6db074617e2cea3586644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / ttsmms-0.7-py3-none-any.whl
| Download URL | ttsmms-0.7-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
617e4dc07bf3ad2e3e902fdb11ca1f9afbed9ba99abfc1476959d9d880f27c84
|
|
BLAKE2b-256 checksum How to use checksums |
79a9f8879bf9dacd9199d5829e6e1c63938c7dfc752c023744b39810db2d5d8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|