|
--- |
|
license: cc-by-4.0 |
|
datasets: |
|
- facebook/multilingual_librispeech |
|
- parler-tts/libritts_r_filtered |
|
language: |
|
- en |
|
pipeline_tag: text-to-speech |
|
--- |
|
<style> |
|
table { |
|
border-collapse: collapse; |
|
width: 100%; |
|
margin-bottom: 20px; |
|
} |
|
th, td { |
|
border: 1px solid #ddd; |
|
padding: 8px; |
|
text-align: center; |
|
} |
|
.best { |
|
font-weight: bold; |
|
text-decoration: underline; |
|
} |
|
</style> |
|
|
|
<div style="text-align: center; margin: 20px auto; padding: 20px; border: 3px solid #ddd; border-radius: 10px;"> |
|
<h2 style="margin-bottom: 4px; margin-top: 0px;">OuteAI</h2> |
|
<a href="https://www.outeai.com/" target="_blank" style="margin-right: 10px;">๐ OuteAI.com</a> |
|
<a href="https://discord.gg/vyBM87kAmf" target="_blank" style="margin-right: 10px;">๐ค Join our Discord</a> |
|
<a href="https://x.com/OuteAI" target="_blank">๐ @OuteAI</a> |
|
</div> |
|
|
|
# OuteTTS-0.1-350M |
|
|
|
## Model Description |
|
|
|
OuteTTS-0.1-350M is a novel text-to-speech synthesis model that leverages pure language modeling without external adapters or complex architectures, built upon the LLaMa architecture using our Oute3-350M-DEV base model, it demonstrates that high-quality speech synthesis is achievable through a straightforward approach using crafted prompts and audio tokens. |
|
|
|
## Key Features |
|
|
|
- Pure language modeling approach to TTS |
|
- Voice cloning capabilities |
|
- LLaMa architecture |
|
- Compatible with llama.cpp and GGUF format |
|
|
|
## Technical Details |
|
|
|
The model utilizes a three-step approach to audio processing: |
|
1. Audio tokenization using WavTokenizer (processing 75 tokens per second) |
|
2. CTC forced alignment for precise word-to-audio token mapping |
|
3. Structured prompt creation following the format: |
|
``` |
|
[full transcription] |
|
[word] [duration token] [audio tokens] |
|
``` |
|
|
|
## Technical Blog |
|
https://www.outeai.com/blog/OuteTTS-0.1-350M |
|
|
|
## Limitations |
|
Being an experimental v0.1 release, there are some known issues: |
|
|
|
- Vocabulary constraints due to training data limitations |
|
- String-only input support |
|
- Given its compact 350M parameter size, the model may frequently alter, insert, or omit wrong words, leading to variations in output quality. |
|
- Variable temperature sensitivity depending on use case |
|
- Performs best with shorter sentences, as accuracy may decrease with longer inputs |
|
|
|
### Speech Samples |
|
|
|
Listen to samples generated by OuteTTS-0.1-350M: |
|
|
|
<div style="margin-top: 20px;"> |
|
<table style="width: 100%; border-collapse: collapse;"> |
|
<thead> |
|
<tr> |
|
<th style="border: 1px solid #ddd; padding: 8px; text-align: left;">Input</th> |
|
<th style="border: 1px solid #ddd; padding: 8px; text-align: left;">Audio</th> |
|
<th style="border: 1px solid #ddd; padding: 8px; text-align: left;">Notes</th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<tr> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Hello, I can speak pretty well, but sometimes I make some mistakes.</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;"> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/2.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/1.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;">(temperature=0.1, repetition_penalty=1.1)</td> |
|
</tr> |
|
<tr> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Once upon a time, there was a</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;"> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/3.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;">(temperature=0.1, repetition_penalty=1.1)</td> |
|
</tr> |
|
<tr> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Scientists have discovered a new planet that may be capable of supporting life!</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;"> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/6.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Using the Q4_K_M quantized model. (temperature=0.7, repetition_penalty=1.1)</td> |
|
</tr> |
|
<tr> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Scientists have discovered a new planet that may be capable of supporting life!</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;"> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/4.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;">The model partially failed to follow the input text. (temperature=0.1, repetition_penalty=1.1) </td> |
|
</tr> |
|
<tr> |
|
<td style="border: 1px solid #ddd; padding: 8px;">Scientists have discovered a new planet that may be capable of supporting life!</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;"> |
|
<audio controls style="width: 100%;"> |
|
<source src="https://huggingface.co/OuteAI/OuteTTS-0.1-350M/resolve/main/samples/5.wav" type="audio/wav"> |
|
Your browser does not support the audio element. |
|
</audio> |
|
</td> |
|
<td style="border: 1px solid #ddd; padding: 8px;">In this case, changing to a higher temperature from 0.1 to 0.7 produces more consistent output. (temperature=0.7, repetition_penalty=1.1)</td> |
|
</tr> |
|
</tbody> |
|
</table> |
|
</div> |
|
|
|
## Installation |
|
https://github.com/edwko/OuteTTS |
|
|
|
```bash |
|
pip install outetts |
|
``` |
|
|
|
## Usage |
|
|
|
### Interface Usage |
|
```python |
|
from outetts.v0_1.interface import InterfaceHF, InterfaceGGUF |
|
|
|
# Initialize the interface with the Hugging Face model |
|
interface = InterfaceHF("OuteAI/OuteTTS-0.1-350M") |
|
|
|
# Or initialize the interface with a GGUF model |
|
# interface = InterfaceGGUF("path/to/model.gguf") |
|
|
|
# Generate TTS output |
|
# Without a speaker reference, the model generates speech with random speaker characteristics |
|
output = interface.generate( |
|
text="Hello, am I working?", |
|
temperature=0.1, |
|
repetition_penalty=1.1, |
|
max_lenght=4096 |
|
) |
|
|
|
# Play the generated audio |
|
output.play() |
|
|
|
# Save the generated audio to a file |
|
output.save("output.wav") |
|
``` |
|
|
|
### Voice Cloning |
|
```python |
|
# Create a custom speaker from an audio file |
|
speaker = interface.create_speaker( |
|
"path/to/reference.wav", |
|
"reference text matching the audio" |
|
) |
|
|
|
# Generate TTS with the custom voice |
|
output = interface.generate( |
|
text="This is a cloned voice speaking", |
|
speaker=speaker, |
|
temperature=0.1, |
|
repetition_penalty=1.1, |
|
max_lenght=4096 |
|
) |
|
``` |
|
|
|
## Model Details |
|
- **Model Type:** LLaMa-based language model |
|
- **Size:** 350M parameters |
|
- **Language Support:** English |
|
- **License:** CC BY 4.0 |
|
- **Speech Datasets Used:** |
|
- LibriTTS-R (CC BY 4.0) |
|
- Multilingual LibriSpeech (MLS) (CC BY 4.0) |
|
|
|
## Future Improvements |
|
- Scaling up parameters and training data |
|
- Exploring alternative alignment methods for better character compatibility |
|
- Potential expansion into speech-to-speech assistant models |
|
|
|
## Credits |
|
|
|
- WavTokenizer: https://github.com/jishengpeng/WavTokenizer |
|
- CTC Forced Alignment: https://pytorch.org/audio/stable/tutorials/ctc_forced_alignment_api_tutorial.html |
|
|
|
## Disclaimer |
|
By using this model, you acknowledge that you understand and assume the risks associated with its use. |
|
You are solely responsible for ensuring compliance with all applicable laws and regulations. |
|
We disclaim any liability for problems arising from the use of this open-source model, including but not limited to direct, indirect, incidental, consequential, or punitive damages. |
|
We make no warranties, express or implied, regarding the model's performance, accuracy, or fitness for a particular purpose. Your use of this model is at your own risk, and you agree to hold harmless and indemnify us, our affiliates, and our contributors from any claims, damages, or expenses arising from your use of the model. |