Metadata-Version: 2.2
Name: melotts-plus
Version: 0.1.0
Summary: Meloplus: Advanced python library for Melotts
Home-page: https://github.com/kadirnar/meloplus
Author: kadirnardev
Author-email: kadirnardev@gmail.com
License: Apache License 2.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: txtsplit
Requires-Dist: torch
Requires-Dist: torchaudio
Requires-Dist: cached_path
Requires-Dist: transformers
Requires-Dist: num2words==0.5.12
Requires-Dist: unidic_lite==1.0.8
Requires-Dist: unidic==1.1.0
Requires-Dist: mecab-python3==1.0.9
Requires-Dist: pykakasi==2.2.1
Requires-Dist: fugashi==1.3.0
Requires-Dist: g2p_en==2.1.0
Requires-Dist: anyascii==0.3.2
Requires-Dist: jamo==0.4.1
Requires-Dist: gruut[de,es,fr]==2.2.3
Requires-Dist: g2pkk>=0.1.1
Requires-Dist: librosa==0.9.1
Requires-Dist: pydub==0.25.1
Requires-Dist: eng_to_ipa==0.0.2
Requires-Dist: inflect==7.0.0
Requires-Dist: unidecode==1.3.7
Requires-Dist: pypinyin==0.50.0
Requires-Dist: cn2an==0.5.22
Requires-Dist: jieba==0.42.1
Requires-Dist: gradio
Requires-Dist: langid==1.1.6
Requires-Dist: tqdm
Requires-Dist: tensorboard
Requires-Dist: loguru==0.7.2
Requires-Dist: botocore
Requires-Dist: pre-commit
Requires-Dist: librosa
Requires-Dist: datasets
Requires-Dist: pythainlp
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

<div align="center">
<h2>
    MeloPlus: Advanced Python Library for MeloTts
</h2>
<div>
    <img width="500" alt="teaser" src="doc/logo.png">
</div>
<div>
    <a href="https://pypi.org/project/meloplus" target="_blank">
        <img src="https://img.shields.io/pypi/pyversions/meloplus.svg?color=%2334D058" alt="Supported Python versions">
    </a>
    <a href="https://badge.fury.io/py/meloplus"><img src="https://badge.fury.io/py/meloplus.svg" alt="pypi version"></a>
</div>
</div>

## 🛠️ Installation

```bash
pip install meloplus
python -m unidic download
```

## 🎙️ Usage

```python
from meloplus import MeloInference

# Speed is adjustable
speed = 1.0

# English
text = "Did you ever hear a folk tale about a giant turtle?"
model = MeloInference(language="EN", device="auto")
speaker_ids = model.hps.data.spk2id

# American accent
output_path = "en-us.wav"
model.tts_to_file(text, speaker_ids["EN-US"], output_path, speed=speed)
```

## 😍 Contributing

```bash
pip install pre-commit
pre-commit install
pre-commit run --all-files
```

## 📜 License

This project is licensed under the terms of the MIT License.

## 🤗 Citation

```bibtex
@software{zhao2024melo,
  author={Zhao, Wenliang and Yu, Xumin and Qin, Zengyi},
  title = {MeloTTS: High-quality Multi-lingual Multi-accent Text-to-Speech},
  url = {https://github.com/myshell-ai/MeloTTS},
  year = {2023}
}
```
