Downloads · 30 days
7
18% of all-time downloads
Shura123/OuteTTS-0.2-500M
OuteTTS-0.2-500M is a text-to-speech model from Shura123. Use it when you need text read aloud. The card lists the license as cc-by-nc-4.0.
<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; } .box { text-al…
Downloads · 30 days
7
18% of all-time downloads
All-time downloads
39
Public
Parameters
499M
1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors998 MB · 98%
From the Hugging Face model README
OuteTTS-0.2-500M is our improved successor to the v0.1 release. The model maintains the same approach of using audio prompts without architectural changes to the foundation model itself. Built upon the Qwen-2.5-0.5B, this version was trained on larger and more diverse datasets, resulting in significant improvements across all aspects of performance.
Special thanks to Hugging Face for providing GPU grant that supported the training of this model!
pip install outetts --upgrade
Important:
llama-cpp-python manually. Installation Guideexllamav2 manually. Installation Guideimport outetts
# Configure the model
model_config = outetts.HFModelConfig_v1(
model_path="OuteAI/OuteTTS-0.2-500M",
language="en", # Supported languages in v0.2: en, zh, ja, ko
)
# Initialize the interface
interface = outetts.InterfaceHF(model_version="0.2", cfg=model_config)
# Print available default speakers
interface.print_default_speakers()
# Load a default speaker
speaker = interface.load_default_speaker(name="male_1")
# Generate speech
output = interface.generate(
text="Speech synthesis is the artificial production of human speech.",
temperature=0.1,
repetition_penalty=1.1,
max_length=4096,
# Optional: Use a speaker profile for consistent voice characteristics
# Without a speaker profile, the model will generate a voice with random characteristics
speaker=speaker,
)
# Save the generated speech to a file
output.save("output.wav")
# Optional: Play the generated audio
# output.play()
import outetts
model_config = outetts.HFModelConfig_v1(
model_path="OuteAI/OuteTTS-0.2-500M",
language="en", # Supported languages in v0.2: en, zh, ja, ko
)
interface = outetts.InterfaceHF(model_version="0.2", cfg=model_config)
import outetts
model_config = outetts.GGUFModelConfig_v1(
model_path="local/path/to/model.gguf",
language="en", # Supported languages in v0.2: en, zh, ja, ko
n_gpu_layers=0,
)
interface = outetts.InterfaceGGUF(model_version="0.2", cfg=model_config)
import outetts
model_config = outetts.EXL2ModelConfig_v1(
model_path="local/path/to/model",
language="en", # Supported languages in v0.2: en, zh, ja, ko
)
interface = outetts.InterfaceEXL2(model_version="0.2", cfg=model_config)
You can create a speaker profile for voice cloning, which is compatible across all backends.
speaker = interface.create_speaker(
audio_path="path/to/audio/file.wav",
# If transcript is not provided, it will be automatically transcribed using Whisper
transcript=None, # Set to None to use Whisper for transcription
whisper_model="turbo", # Optional: specify Whisper model (default: "turbo")
whisper_device=None, # Optional: specify device for Whisper (default: None)
)
Speaker profiles can be saved and loaded across all supported backends.
# Save speaker profile
interface.save_speaker(speaker, "speaker.json")
# Load speaker profile
speaker = interface.load_speaker("speaker.json")
OuteTTS includes a set of default speaker profiles. Use them directly:
# Print available default speakers
interface.print_default_speakers()
# Load a default speaker
speaker = interface.load_default_speaker(name="male_1")
The generation process is consistent across all backends.
output = interface.generate(
text="Speech synthesis is the artificial production of human speech.",
temperature=0.1,
repetition_penalty=1.1,
max_length=4096,
speaker=speaker, # Optional: speaker profile
)
output.save("output.wav")
# Optional: Play the audio
# output.play()
You can initialize custom backend configurations for specific needs.
model_config = outetts.HFModelConfig_v1(
model_path="OuteAI/OuteTTS-0.2-500M",
language="en",
dtype=torch.bfloat16,
additional_model_config={
'attn_implementation': "flash_attention_2"
}
)
To achieve the best results when creating a speaker profile, consider the following recommendations:
Audio Clip Duration:
Audio Quality:
Accurate Transcription:
Speaker Familiarity:
Parameter Adjustments:
temperature in the generate function to refine the expressive quality and consistency of the synthesized voice.