Skip to content

conversationtts model guide

Overview

conversationtts is a VoiceHub text to speech integration. This page is generated from the model registry and its executable data and training contracts, so the documented support stays aligned with code. Open the conversationtts Colab notebook.

Quickstart

python -m pip install voicehub
  1. Install VoiceHub and the provider extra shown above.
  2. Choose a checkpoint that matches this integration.
  3. Set the input text and generation options for your use case.
  4. Generate audio and inspect the returned sample rate and metadata.
from pathlib import Path

from voicehub import AutoModelForTextToSpeech, TTSGenerationConfig

model = AutoModelForTextToSpeech.from_pretrained(
    'AudioFoundation/SpeechFoundation',
    model_type='conversationtts',
    device="cuda",
    lazy_load=True,
)
generation_kwargs = {
}
output = model.generate(
    "VoiceHub keeps model integrations consistent and easy to extend.",
    generation_config=TTSGenerationConfig(
        seed=42,
        output_file=Path("output.wav"),
    ),
    **generation_kwargs,
)
print(output.file_path, output.sample_rate)

Use only authorized recordings for reference voice, transcription, detection, or evaluation. The example selects a concrete device; verify checkpoint-specific hardware needs and pin an immutable revision before production use.

Supported tasks and capabilities

Property Value
Task Text to speech
Architecture conversationtts
Runtime VoiceHub-native
Capabilities text-to-speech, voice-cloning, conversation, multilingual, fine-tuning, safetensors, voicehub-native, native-runtime, raw-audio-fine-tuning, preencoded-code-fine-tuning, noncommercial
Reusable components

Data contract

Property Value
Readiness integrated-raw
Data architecture codec-lm
Sample rate 24,000 Hz
Contract getter get_tts_dataset_spec('conversationtts')
Variant Required fields One of Boundary Other rules
raw-text-audio text / texts; audio / audio_values Source at most one: text / texts; audio / audio_values; forbidden: text_token_ids, text_ids, audio_codes, codes
raw-text-code text / texts; audio_codes / codes Prepared at most one: text / texts; audio_codes / codes; forbidden: text_token_ids, text_ids, audio, audio_values
tokenized-text-audio text_token_ids / text_ids; audio / audio_values Prepared at most one: text_token_ids / text_ids; audio / audio_values; forbidden: text, texts, audio_codes, codes
tokenized-text-code text_token_ids / text_ids; audio_codes / codes Prepared at most one: text_token_ids / text_ids; audio_codes / codes; forbidden: text, texts, audio, audio_values
multi-codebook-batch tokens, labels, tokens_mask Prepared

Autoregressive text/audio-token or codec-language-model data. Follow the shared data workflow for manifest loading, audio validation, leakage-safe splits, and model-owned preprocessing.

Checkpoints, provenance, and license

Property Value
Default checkpoint AudioFoundation/SpeechFoundation
Checkpoint status Registry default; pin an immutable revision for production and reproducible evidence
Implementation voicehub.models.conversationtts.modeling_conversationtts.ConversationTTSForTextToSpeech
Configuration voicehub.models.conversationtts.configuration_conversationtts.ConversationTTSConfig
Source provenance voicehub/models/conversationtts/source/SOURCE.json
License CC-BY-NC-4.0

Source, checkpoints, datasets, and evaluation tools are non-commercial. Commercial use: not allowed.

The default checkpoint identifies the expected family, not every compatible variant. Confirm the selected checkpoint's revision, access terms, provenance, and license before downloading or redistributing it.

Optimization and training support

All public optimizations enter this model through the shared BaseSpeechModel lifecycle. Use available_optimization_passes() to discover the public pass registry, then apply, inspect, serialize, or restore a plan through the common model API. Application remains fail-closed when the active runtime or hardware cannot satisfy a pass.

Training contract

Property Value
Support native
Family causal-lm
Recipe single-phase
Default phase codec_language_model
Training checkpoint AudioFoundation/SpeechFoundation
Native training graph yes
Phase Kind Components Required inputs Loss keys
codec_language_model objective model tokens, labels, tokens_mask loss, codebook0_loss, residual_loss

The integration accepts its declared source or prepared contract directly. Call model.validate_training_support() before constructing a trainer. Follow the shared training workflow for a one-step smoke test, validation, checkpoint resume, optimization, and portable export.

Public API

Purpose Public object
Discover get_model_spec('conversationtts')
Load and run AutoModelForTextToSpeech
Configure ConversationTTSConfig
Model implementation ConversationTTSForTextToSpeech
Normalized output TTSOutput
Training contract get_training_spec('conversationtts')
Optimization lifecycle available_optimization_passes, apply_optimization_plan, optimization_manifest, restore_optimization_plan

Related shared documentation: