Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,112 @@
|
|
1 |
---
|
2 |
license: other
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: other
|
3 |
---
|
4 |
+
|
5 |
+
# ⓍTTS
|
6 |
+
ⓍTTS is a super cool Text-to-Speech model that lets you clone voices in different languages by using just a quick 3-second audio clip. Built on the 🐢Tortoise,
|
7 |
+
ⓍTTS has important model changes that make cross-language voice cloning and multi-lingual speech generation super easy.
|
8 |
+
There is no need for an excessive amount of training data that spans countless hours.
|
9 |
+
|
10 |
+
This is the same model that powers [Coqui Studio](https://coqui.ai/), and [Coqui API](https://docs.coqui.ai/docs), however we apply
|
11 |
+
a few tricks to make it faster and support streaming inference.
|
12 |
+
|
13 |
+
### Features
|
14 |
+
- Voice cloning with just a 3-second audio clip.
|
15 |
+
- Cross-language voice cloning.
|
16 |
+
- Multi-lingual speech generation.
|
17 |
+
- 24khz sampling rate.
|
18 |
+
|
19 |
+
### Code
|
20 |
+
Current implementation only supports inference.
|
21 |
+
|
22 |
+
### Languages
|
23 |
+
As of now, XTTS-v1 supports 13 languages: English, Spanish, French, German, Italian, Portuguese,
|
24 |
+
Polish, Turkish, Russian, Dutch, Czech, Arabic, and Chinese (Simplified).
|
25 |
+
|
26 |
+
Stay tuned as we continue to add support for more languages. If you have any language requests, please feel free to reach out.
|
27 |
+
|
28 |
+
### License
|
29 |
+
This model is licensed under [Coqui Public Model License]().
|
30 |
+
|
31 |
+
### Contact
|
32 |
+
Come and join in our 🐸Community. We're active on [Discord](https://discord.gg/fBC58unbKE) and [Twitter](https://twitter.com/coqui_ai).
|
33 |
+
You can also mail us at info@coqui.ai.
|
34 |
+
|
35 |
+
Using 🐸TTS API:
|
36 |
+
|
37 |
+
```python
|
38 |
+
from TTS.api import TTS
|
39 |
+
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1", gpu=True)
|
40 |
+
|
41 |
+
# generate speech by cloning a voice using default settings
|
42 |
+
tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.",
|
43 |
+
file_path="output.wav",
|
44 |
+
speaker_wav="/path/to/target/speaker.wav",
|
45 |
+
language="en")
|
46 |
+
|
47 |
+
# generate speech by cloning a voice using custom settings
|
48 |
+
tts.tts_to_file(text="It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.",
|
49 |
+
file_path="output.wav",
|
50 |
+
speaker_wav="/path/to/target/speaker.wav",
|
51 |
+
language="en",
|
52 |
+
decoder_iterations=30)
|
53 |
+
```
|
54 |
+
|
55 |
+
Using 🐸TTS Command line:
|
56 |
+
|
57 |
+
```console
|
58 |
+
tts --model_name tts_models/multilingual/multi-dataset/xtts_v1 \
|
59 |
+
--text "Bugün okula gitmek istemiyorum." \
|
60 |
+
--speaker_wav /path/to/target/speaker.wav \
|
61 |
+
--language_idx tr \
|
62 |
+
--use_cuda true
|
63 |
+
```
|
64 |
+
|
65 |
+
Using model directly:
|
66 |
+
|
67 |
+
```python
|
68 |
+
from TTS.tts.configs.xtts_config import XttsConfig
|
69 |
+
from TTS.tts.models.xtts import Xtts
|
70 |
+
|
71 |
+
config = XttsConfig()
|
72 |
+
config.load_json("/path/to/xtts/config.json")
|
73 |
+
model = Xtts.init_from_config(config)
|
74 |
+
model.load_checkpoint(config, checkpoint_dir="/path/to/xtts/", eval=True)
|
75 |
+
model.cuda()
|
76 |
+
|
77 |
+
outputs = model.synthesize(
|
78 |
+
"It took me quite a long time to develop a voice and now that I have it I am not going to be silent.",
|
79 |
+
config,
|
80 |
+
speaker_wav="/data/TTS-public/_refclips/3.wav",
|
81 |
+
gpt_cond_len=3,
|
82 |
+
language="en",
|
83 |
+
)
|
84 |
+
```
|
85 |
+
|
86 |
+
|
87 |
+
## Important resources & papers
|
88 |
+
- VallE: https://arxiv.org/abs/2301.02111
|
89 |
+
- Tortoise Repo: https://github.com/neonbjb/tortoise-tts
|
90 |
+
- Faster implementation: https://github.com/152334H/tortoise-tts-fast
|
91 |
+
- Univnet: https://arxiv.org/abs/2106.07889
|
92 |
+
- Latent Diffusion:https://arxiv.org/abs/2112.10752
|
93 |
+
- DALL-E: https://arxiv.org/abs/2102.12092
|
94 |
+
|
95 |
+
|
96 |
+
## XttsConfig
|
97 |
+
```{eval-rst}
|
98 |
+
.. autoclass:: TTS.tts.configs.xtts_config.XttsConfig
|
99 |
+
:members:
|
100 |
+
```
|
101 |
+
|
102 |
+
## XttsArgs
|
103 |
+
```{eval-rst}
|
104 |
+
.. autoclass:: TTS.tts.models.xtts.XttsArgs
|
105 |
+
:members:
|
106 |
+
```
|
107 |
+
|
108 |
+
## XTTS Model
|
109 |
+
```{eval-rst}
|
110 |
+
.. autoclass:: TTS.tts.models.xtts.XTTS
|
111 |
+
:members:
|
112 |
+
```
|