Skip to main content

VoiceHub: A Unified Inference Interface for TTS Models

teaser

🛠️ Installation

uv venv --python 3.12
source .venv/bin/activate
uv pip install voicehub

📚 Usage

VoiceHub provides a simple, unified interface for working with various Text-to-Speech (TTS) models. Below are examples showing how to use different supported TTS models with the same consistent approach.

OrpheusTTS Model

from voicehub.automodel import AutoInferenceModel

model = AutoInferenceModel.from_pretrained(
    model_type="orpheustts",  # or "dia" or "vui"
    model_path="canopylabs/orpheus-3b-0.1-ft",
    device="cuda",
)

output = model("Hello, how are you today?", voice="tara", output_file="output.wav")

DiaTTS Model

from voicehub.automodel import AutoInferenceModel

model = AutoInferenceModel.from_pretrained(
    model_type="dia",  # or "dia" or "vui"
    model_path="dia/dia-100m-base.pt",
    device="cuda",
)

output = model(
    text="Hey, here is some random stuff, the text the less likely the model can cope!",
    output_file="output.wav",
)

VuiTTS Model

from voicehub.automodel import AutoInferenceModel

model = AutoInferenceModel.from_pretrained(
    model_type="vui",  # or "dia" or "vui"
    model_path="vui-100m-base.pt",
    device="cuda",
)

output = model(
    text="Hey, here is some random stuff, the text the less likely the model can cope!",
    output_file="output.wav",
)

🤗 Contributing

uv pip install pre-commit
pre-commit install
pre-commit run --all-files

📝 Acknowledgments

Metadata

Release files for voicehub 0.1.6

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

Source distribution (sdist)

Source distribution for voicehub 0.1.6
File Size Uploaded Provenance Actions
voicehub-0.1.6.tar.gz 54.1 kB Without provenance Details for voicehub-0.1.6.tar.gz

Release files / voicehub-0.1.6.tar.gz

Download URL voicehub-0.1.6.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
06708a817cec5bb09fefb59ef02aac7cfe7286576eac9183f6535e5093608687
BLAKE2b-256 checksum
How to use checksums
fc55fcb78e0f8d0168b0bed2f3950a5274d3d5470c8a7e2af2d4838b34262252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for voicehub 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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