edwko commited on
Commit
27c97a1
·
verified ·
1 Parent(s): ddaf48f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +180 -3
README.md CHANGED
@@ -1,3 +1,180 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-sa-4.0
3
+ ---
4
+ <style>
5
+ table {
6
+ border-collapse: collapse;
7
+ width: 100%;
8
+ margin-bottom: 20px;
9
+ }
10
+ th, td {
11
+ border: 1px solid #ddd;
12
+ padding: 8px;
13
+ text-align: center;
14
+ }
15
+ .best {
16
+ font-weight: bold;
17
+ text-decoration: underline;
18
+ }
19
+ .box {
20
+ text-align: center;
21
+ margin: 20px auto;
22
+ padding: 30px;
23
+ box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.05), 0px 1px 3px 10px rgba(255, 255, 255, 0.05);
24
+ border-radius: 10px;
25
+ }
26
+ .badges {
27
+ display: flex;
28
+ justify-content: center;
29
+ gap: 10px;
30
+ flex-wrap: wrap;
31
+ margin-top: 10px;
32
+ }
33
+ .badge {
34
+ text-decoration: none;
35
+ display: inline-block;
36
+ padding: 4px 8px;
37
+ border-radius: 5px;
38
+ color: #fff;
39
+ font-size: 12px;
40
+ font-weight: bold;
41
+ width: 200px;
42
+ }
43
+ .badge-hf-blue {
44
+ background-color: #6B7280;
45
+ }
46
+ .badge-hf-pink {
47
+ background-color: #7b768a;
48
+ }
49
+ .badge-github {
50
+ background-color: #2c2b2b;
51
+ }
52
+ </style>
53
+
54
+ <div class="box">
55
+ <div style="margin-bottom: 20px;">
56
+ <h2 style="margin-bottom: 4px; margin-top: 0px;">OuteAI</h2>
57
+ <a href="https://www.outeai.com/" target="_blank" style="margin-right: 10px;">🌐 OuteAI.com</a>
58
+ <a href="https://discord.gg/vyBM87kAmf" target="_blank" style="margin-right: 10px;">💬 Join our Discord</a>
59
+ <a href="https://x.com/OuteAI" target="_blank">𝕏 @OuteAI</a>
60
+ </div>
61
+ <div class="badges">
62
+ <a href="https://huggingface.co/OuteAI/OuteTTS-0.3-1B" target="_blank" class="badge badge-hf-blue">HF - OuteTTS 0.3 1B</a>
63
+ <a href="https://huggingface.co/OuteAI/OuteTTS-0.3-1B-GGUF" target="_blank" class="badge badge-hf-blue">HF - OuteTTS 0.3 1B GGUF</a>
64
+ <a href="https://huggingface.co/OuteAI/OuteTTS-0.3-500M" target="_blank" class="badge badge-hf-blue">HF - OuteTTS 0.3 500M</a>
65
+ <a href="https://huggingface.co/OuteAI/OuteTTS-0.3-500M-GGUF" target="_blank" class="badge badge-hf-blue">HF - OuteTTS 0.3 500M GGUF</a>
66
+ <a href="https://github.com/edwko/OuteTTS" target="_blank" class="badge badge-github">GitHub - OuteTTS</a>
67
+ </div>
68
+ </div>
69
+
70
+ # OuteTTS Version 0.3
71
+
72
+ OuteTTS version 0.3 introduces multiple model variants tailored for diverse use cases.
73
+ This release significantly enhances the naturalness and coherence of speech synthesis by adding punctuation support, improving the flow and clarity of generated speech.
74
+ The following punctuation marks are supported: `'.', '!', '?', ',', '"', '„', '¡', '¿', '…', '...', '。', '!', '?', ',', '؟'`. These are converted into special tokens, for instance, `.` is transformed into `<|period|>`.
75
+ Additionally, the models were trained on refined and extended datasets, offering broader linguistic coverage. With this version, two new languages, **German (de)** and **French (fr)**, are supported, bringing the total to six languages: **English (en)**, **Japanese (jp)**, **Korean (ko)**, **Chinese (zh)**, **French (fr)**, and **German (de)**.
76
+
77
+ Experimental voice control features are also included, though they are in very early stage of development. Due to limited data, these features may produce inconsistent results and might sometimes be ignored by the model.
78
+
79
+ Special thanks to **Hugging Face** 🤗 for providing the GPU grant that made training this model possible!
80
+
81
+ ## Available Variants
82
+
83
+ ### OuteTTS-0.3-500M
84
+ - **Base**: Qwen2.5-0.5B (Apache-2.0)
85
+ - **License**: CC-BY-SA-4.0
86
+ - **Training**: 10,000 hours of speech audio (~4 billion tokens)
87
+ - **Supported Languages**: en, jp, ko (small dataset), zh, fr, de
88
+
89
+ ### OuteTTS-0.3-1B
90
+ - **Base**: OLMO-1B (Apache-2.0)
91
+ - **License**: CC-BY-NC-SA-4.0 _(Incorporates the Emilia dataset, for improved quality)_
92
+ - **Training**: 20,000 hours of speech audio (~8 billion tokens)
93
+ - **Supported Languages**: en, jp, ko, zh, fr, de
94
+
95
+ ## Showcase Video
96
+ <video width="1280" height="720" controls style="box-shadow: 0px 0px 20px 10px rgba(0, 0, 0, 0.05), 0px 1px 3px 10px rgba(255, 255, 255, 0.05);">
97
+ <source src="https://huggingface.co/OuteAI/OuteTTS-0.3-1B-GGUF/resolve/main/generation_preview.mp4" type="video/mp4">
98
+ Your browser does not support the video tag.
99
+ </video>
100
+
101
+ ---
102
+
103
+ ## Installation
104
+
105
+ Install the OuteTTS package via pip:
106
+
107
+ ```bash
108
+ pip install outetts --upgrade
109
+ ```
110
+
111
+ ## Usage
112
+
113
+ ### Quick Start: Full Basic Example
114
+
115
+ ```python
116
+ import outetts
117
+
118
+ # Configure the model
119
+ model_config = outetts.HFModelConfig_v2(
120
+ model_path="OuteAI/OuteTTS-0.3-1B",
121
+ )
122
+ # Initialize the interface
123
+ interface = outetts.InterfaceHF(model_version="0.3", cfg=model_config)
124
+
125
+ # You can create a speaker profile for voice cloning, which is compatible across all backends.
126
+ # speaker = interface.create_speaker(
127
+ # audio_path="path/to/audio/file.wav",
128
+ # transcript=None, # Set to None to use Whisper for transcription
129
+ # whisper_model="turbo", # Optional: specify Whisper model (default: "turbo")
130
+ # whisper_device=None, # Optional: specify device for Whisper (default: None)
131
+ # )
132
+ # interface.save_speaker(speaker, "speaker.json")
133
+ # speaker = interface.load_speaker("speaker.json")
134
+
135
+ # Print available default speakers
136
+ interface.print_default_speakers()
137
+ # Load a default speaker
138
+ speaker = interface.load_default_speaker(name="en_male_1")
139
+
140
+ # Generate speech
141
+ gen_cfg = outetts.GenerationConfig(
142
+ text="Speech synthesis is the artificial production of human speech.",
143
+ temperature=0.4,
144
+ repetition_penalty=1.1,
145
+ max_length=4096,
146
+ speaker=speaker,
147
+ )
148
+ output = interface.generate(config=gen_cfg)
149
+
150
+ # Save the generated speech to a file
151
+ output.save("output.wav")
152
+ ```
153
+ > [!IMPORTANT]
154
+ > ## For additional usage examples and recommendations, visit the [GitHub repository](https://github.com/edwko/OuteTTS?tab=readme-ov-file#usage).
155
+
156
+ ---
157
+
158
+ ## Dataset Attribution
159
+
160
+ The OuteTTS-0.3-1B training data incorporates various publicly available speech datasets. Below is a summary of the key data sources:
161
+
162
+ - **Emilia Dataset**: CC-BY-NC 4.0
163
+ - **Mozilla Common Voice**: CC-0
164
+ - **MLCommons People's Speech Dataset (selected portions)**: CC-BY 4.0
165
+ - **Noisy Speech Database (Edinburgh DataShare)**: CC BY 4.0
166
+ - **Multilingual LibriSpeech (MLS)**: CC BY 4.0
167
+ - **CSTR VCTK Corpus (Edinburgh DataShare)**: CC BY 4.0
168
+ - **THCHS-30 (Open Speech and Language Resources)**: Apache-2.0
169
+ - **Zeroth-Korean (Open Speech and Language Resources)**: CC BY 4.0
170
+ - **Aishell (Open Speech and Language Resources)**: Apache-2.0
171
+ - **Other permissively licensed datasets**
172
+
173
+ ## Credits & References
174
+
175
+ Special acknowledgment to the open-source community and researchers for their valuable contributions.
176
+
177
+ - [WavTokenizer GitHub](https://github.com/jishengpeng/WavTokenizer) | [WavTokenizer HF](https://huggingface.co/novateur/WavTokenizer-large-speech-75token)
178
+ - [CTC Forced Alignment](https://pytorch.org/audio/stable/tutorials/ctc_forced_alignment_api_tutorial.html)
179
+ - [Qwen-2.5-0.5B](https://huggingface.co/Qwen/Qwen2.5-0.5B)
180
+ - [OLMo-1B](https://huggingface.co/allenai/OLMo-1B-hf)