Skip to main content

OuteTTS

🌐 Website | 🤗 Hugging Face | 💬 Discord | 𝕏 X (Twitter) | 📰 Blog

HuggingFace HuggingFace PyPI npm

Compatibility

OuteTTS supports the following backends:

Backend Type Installation
Llama.cpp Python Bindings Python ✅ Installed by default
Llama.cpp Server Python ✅ Installed by default
Llama.cpp Server Async (Batched) Python ✅ Installed by default
Hugging Face Transformers Python ✅ Installed by default
ExLlamaV2 & ExLlamaV2 Async (Batched) Python ❌ Requires manual installation
VLLM (Batched) Experimental support Python ❌ Requires manual installation
Transformers.js JavaScript NPM package
Llama.cpp Directly C++ External library

⚡ Batched RTF Benchmarks

Tested with NVIDIA L40S GPU

rtf

Installation

OuteTTS Installation Guide

OuteTTS now installs the llama.cpp Python bindings by default. Therefore, you must specify the installation based on your hardware. For more detailed instructions on building llama.cpp, refer to the following resources: llama.cpp Build and llama.cpp Python

Pip:

Transformers + llama.cpp CPU
pip install outetts --upgrade
Transformers + llama.cpp CUDA (NVIDIA GPUs) For systems with NVIDIA GPUs and CUDA installed:
CMAKE_ARGS="-DGGML_CUDA=on" pip install outetts --upgrade
Transformers + llama.cpp ROCm/HIP (AMD GPUs) For systems with AMD GPUs and ROCm (specify your DAMDGPU_TARGETS) installed:
CMAKE_ARGS="-DGGML_HIPBLAS=on" pip install outetts --upgrade
Transformers + llama.cpp Vulkan (Cross-platform GPU) For systems with Vulkan support:
CMAKE_ARGS="-DGGML_VULKAN=on" pip install outetts --upgrade
Transformers + llama.cpp Metal (Apple Silicon/Mac) For macOS systems with Apple Silicon or compatible GPUs:
CMAKE_ARGS="-DGGML_METAL=on" pip install outetts --upgrade

Usage

📚 Documentation

For a complete usage guide, refer to the interface documentation here:

Documentation

Basic Usage

import outetts

# Initialize the interface
interface = outetts.Interface(
    config=outetts.ModelConfig.auto_config(
        model=outetts.Models.VERSION_1_0_SIZE_1B,
        # For llama.cpp backend
        backend=outetts.Backend.LLAMACPP,
        quantization=outetts.LlamaCppQuantization.FP16
        # For transformers backend
        # backend=outetts.Backend.HF,
    )
)

# Load the default speaker profile
speaker = interface.load_default_speaker("EN-FEMALE-1-NEUTRAL")

# Or create your own speaker profiles in seconds and reuse them instantly
# speaker = interface.create_speaker("path/to/audio.wav")
# interface.save_speaker(speaker, "speaker.json")
# speaker = interface.load_speaker("speaker.json")

# Generate speech
output = interface.generate(
    config=outetts.GenerationConfig(
        text="Hello, how are you doing?",
        speaker=speaker,
    )
)

# Save to file
output.save("output.wav")

Usage Recommendations for OuteTTS version 1.0

Speaker Reference

The model is designed to be used with a speaker reference. Without one, it generates random vocal characteristics, often leading to lower-quality outputs. The model inherits the referenced speaker's emotion, style, and accent. Therefore, when transcribing to other languages with the same speaker, you may observe the model retaining the original accent. For example, if you use a Japanese speaker and continue speech in English, the model may tend to use a Japanese accent.

Multilingual Application

It is recommended to create a speaker profile in the language you intend to use. This helps achieve the best results in that specific language, including tone, accent, and linguistic features.

While the model supports cross-lingual speech, it still relies on the reference speaker. If the speaker has a distinct accent—such as British English—other languages may carry that accent as well.

Optimal Audio Length

  • Best Performance: Generate audio around 42 seconds in a single run (approximately 8,192 tokens). It is recomended not to near the limits of this windows when generating. Usually, the best results are up to 7,000 tokens.
  • Context Reduction with Speaker Reference: If the speaker reference is 10 seconds long, the effective context is reduced to approximately 32 seconds.

Temperature Setting Recommendations

Testing shows that a temperature of 0.4 is an ideal starting point for accuracy (with the sampling settings below). However, some voice references may benefit from higher temperatures for enhanced expressiveness or slightly lower temperatures for more precise voice replication.

Verifying Speaker Encoding

If the cloned voice quality is subpar, check the encoded speaker sample.

interface.decode_and_save_speaker(speaker=your_speaker, path="speaker.wav")

The DAC audio reconstruction model is lossy, and samples with clipping, excessive loudness, or unusual vocal features may introduce encoding issues that impact output quality.

Sampling Configuration

For optimal results with this TTS model, use the following sampling settings.

Parameter Value
Temperature 0.4
Repetition Penalty 1.1
Repetition Range 64
Top-k 40
Top-p 0.9
Min-p 0.05

Metadata

Release files for outetts 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for outetts 0.4.4
File Size Uploaded
outetts-0.4.4.tar.gz 307.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for outetts 0.4.4
File Interpreter ABI Platform
outetts-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 722.9 kB

Release files / outetts-0.4.4.tar.gz

Download URL outetts-0.4.4.tar.gz
Size 307.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7f9ad451967b1857079c2ea827a06585ab4d3a3f6d457368873e7af0e618b238
BLAKE2b-256 checksum
How to use checksums
78904b5f5468a879b49c14bcc30b74e595f087c5ad374479167f336caa457154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release files / outetts-0.4.4-py3-none-any.whl

Download URL outetts-0.4.4-py3-none-any.whl
Size 415.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68815ccf063c33c11ed62292dc41fa7c0e5d37e28976b9504a0e82f0972cc32c
BLAKE2b-256 checksum
How to use checksums
1bea980e108960caeacc6de1cbf5d5ba61a74b86869ac56bb1321eb18706f1b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page