Skip to main content

VoiceStar: Robust, Duration-Controllable TTS that can Extrapolate

VoiceStar is a robust, duration-controllable TTS model with support for test-time extrapolation, meaning it can generate speech longer than the duration it was trained on.

Features

  • Duration control: Specify the duration of the generated speech.
  • Zero-shot voice cloning: Clone any voice with a short reference audio clip (demo video).

Coming soon: research paper (ETA: 7 April 2025 - 14 April 2025)

Quick Start

Install

pip install voicestar

Make sure you also have espeak-ng installed.

Note: If you run into issues installing VoiceStar with uv, try installing it with pip instead.

Usage

Basic usage:

voicestar --reference-speech "./demo/5895_34622_000026_000002.wav" --target-text "I cannot believe that the same model can also do text to speech synthesis too! And you know what? this audio is 8 seconds long." --target-duration 8

Please refer to the CLI and Python API documentation below for more advanced usage.

Training

Please refer to the training docs for more information.

Inference

CLI

voicestar --reference-speech "./demo/5895_34622_000026_000002.wav" --target-text "I cannot believe that the same model can also do text to speech synthesis too!"

View all available options:

voicestar --help

Python API

from voicestar import VoiceStar

# Initialize the model
model = VoiceStar()

# Generate speech from text
audio = model.generate("I cannot believe that the same model can also do text to speech synthesis too!")
audio.save("output.wav")

License

The code in this repo is licensed under the MIT license. The pretrained model weights available on Hugging Face are licensed under the CC-BY-4.0 license.

This repository may contain third-party software which may be licensed under different licenses.

Metadata

Release files for voicestar 0.1.0

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

Source distribution (sdist)

Source distribution for voicestar 0.1.0
File Size Uploaded Provenance
voicestar-0.1.0.tar.gz 121.8 kB Without provenance Details

Release files / voicestar-0.1.0.tar.gz

Download URL voicestar-0.1.0.tar.gz
Size 121.8 kB
Tags Source
SHA-256 checksum
How to use checksums
799d716958b5bb301b1275673560e25590eb318f504ba1e5d203ed82a49776bd
BLAKE2b-256 checksum
How to use checksums
d798a558d70a7871cd32973c1cf4add34eed87d4c614dfd49c5234e1dd33710c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Security for voicestar 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

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