# MeloTTS

<figure><img src="/files/XFoNuGeSy1oTrErIF6nd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/kyrZIXD5T6qSlftv7NAS" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/54RXECU9OlKozfqp8LX7" alt="" width="375"><figcaption></figcaption></figure>

[GitHub](https://github.com/myshell-ai/MeloTTS)

MeloTTS is a **high-quality multi-lingual** text-to-speech library by [MIT](https://www.mit.edu/) and [MyShell.ai](https://myshell.ai/). Supported languages include:

| Language             | Example                                                                                                                |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| English (American)   | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/en/EN-US/speed_1.0/sent_000.wav)      |
| English (British)    | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/en/EN-BR/speed_1.0/sent_000.wav)      |
| English (Indian)     | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/en/EN_INDIA/speed_1.0/sent_000.wav)   |
| English (Australian) | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/en/EN-AU/speed_1.0/sent_000.wav)      |
| English (Default)    | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/en/EN-Default/speed_1.0/sent_000.wav) |
| Spanish              | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/es/ES/speed_1.0/sent_000.wav)         |
| French               | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/fr/FR/speed_1.0/sent_000.wav)         |
| Chinese (mix EN)     | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/zh/ZH/speed_1.0/sent_008.wav)         |
| Japanese             | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/jp/JP/speed_1.0/sent_000.wav)         |
| Korean               | [Link](https://myshell-public-repo-host.s3.amazonaws.com/myshellttsbase/examples/kr/KR/speed_1.0/sent_000.wav)         |

Some other features include:

* The Chinese speaker supports `mixed Chinese and English`.
* Fast enough for `CPU real-time inference`.

## Usage

* [Use without Installation](https://github.com/myshell-ai/MeloTTS/blob/main/docs/quick_use.md)
* [Install and Use Locally](https://github.com/myshell-ai/MeloTTS/blob/main/docs/install.md)
* [Training on Custom Dataset](https://github.com/myshell-ai/MeloTTS/blob/main/docs/training.md)

The Python API and model cards can be found in [this repo](https://github.com/myshell-ai/MeloTTS/blob/main/docs/install.md#python-api) or on [HuggingFace](https://huggingface.co/myshell-ai).

**Contributing**

If you find this work useful, please consider contributing to this repo.

* Many thanks to [@fakerybakery](https://github.com/fakerybakery) for adding the Web UI and CLI part.

## **Citation**

```
@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}
}
```

## License

This library is under MIT License, which means it is free for both commercial and non-commercial use.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.myshell.ai/technology/melotts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
