Skip to main content
donglao-tts — angular horizontal singing crocodile logo

donglao-tts

Reference-voice text-to-speech with a simple Python API.

Research/pre-1.0 release. APIs may change between versions. Use reference voices only with the speaker's permission.

Recommended Python API

uv add donglao-tts

# Or with pip
python -m pip install donglao-tts
from donglao_tts import DongLaoTTS

tts = DongLaoTTS.from_pretrained("DongLao/DongLao-TTS")

waveform = tts.generate(
    "Xin chào mọi người, đây là Đông Lào TTS.",
    reference_audio="reference.wav",
    reference_text="Exact transcript of the speech in reference.wav.",
    output_path="output.wav",
)

print(tts.revision)
print(tts.sample_rate)
print(tuple(waveform.shape))

The first call downloads the model, tokenizer, and bundled MOSS codec. CUDA is selected when available; otherwise the model runs on CPU. Reuse the loaded tts object for subsequent calls.

For reproducible use, pin a tested model commit:

tts = DongLaoTTS.from_pretrained(
    "DongLao/DongLao-TTS",
    revision="6ba3003ccb8d938c2a725a4117084492909c9419",
    device="cuda",
)

Generation controls are available when needed:

waveform = tts.generate(
    "Text to synthesize.",
    reference_audio="reference.wav",
    reference_text="Exact reference transcript.",
    output_path="output.wav",  # optional
    max_frames=200,
    temperature=1.0,
    top_k=0,
)

The returned waveform is a CPU PyTorch tensor with shape [channels, samples].

Runtime requirements

  • Python >=3.10,<3.11
  • Linux x86-64
  • FFmpeg 4–8 shared libraries
  • CUDA-capable GPU recommended; CPU inference is supported

Reference audio

Use a clean, consented recording containing one speaker. reference_text must match the spoken content exactly. Avoid music, overlapping speakers, clipping, long silence, and heavy reverb.

Verify the installation

donglao-smoke-test-hub \
  --repo-id DongLao/DongLao-TTS \
  --device cpu

For an end-to-end test, also pass --ref-audio, --ref-text, --target-text, and --output.

Responsible use

Obtain consent before using a voice, disclose synthetic audio when appropriate, and protect reference recordings and transcripts. Do not use the package for impersonation, fraud, harassment, or bypassing voice authentication.

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donglao_tts-0.1.4.tar.gz (409.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

donglao_tts-0.1.4-py3-none-any.whl (76.2 kB view details)

Uploaded Python 3

File details

Details for the file donglao_tts-0.1.4.tar.gz.

File metadata

  • Download URL: donglao_tts-0.1.4.tar.gz
  • Upload date:
  • Size: 409.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for donglao_tts-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9df06f5133f59c1326a13729098600ef7647c7ec28ebd33d1cdc2ce434e7eb05
MD5 a1a24eef527ea40db9b3aa47c769b802
BLAKE2b-256 37559c2cf64aca1a2891b4e99c620150774ae01184ccaaf00448f6f7fc684b72

See more details on using hashes here.

Provenance

The following attestation bundles were made for donglao_tts-0.1.4.tar.gz:

Publisher: release.yml on DongLaoAI/donglao-tts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file donglao_tts-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: donglao_tts-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 76.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for donglao_tts-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 63012a1ee14c1f57b15c219bd284b5b56ed0530244d41c6ee6c4d83b35cc2d60
MD5 98598a5a7d59108df266f53df75f527a
BLAKE2b-256 89967c9b751879fc0cf6005da36e2ac34b6f16990fca58c948e6e68d461210ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for donglao_tts-0.1.4-py3-none-any.whl:

Publisher: release.yml on DongLaoAI/donglao-tts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

This release

0.1.4 This release

2 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