Skip to main content

Dia TTS adapter for Vox

Project description

vox-dia

Dia TTS adapter package for Vox.

Included adapter

  • dia-tts-torch — Dia 1.6B text-to-speech backend

Install

pip install vox-dia

Runtime Dependencies

Dia uses an isolated target runtime at $VOX_HOME/runtime/dia for backend packages that must not leak into the base Vox app environment.

The adapter package itself is intentionally lightweight and does not install Torch. The current Dia backend uses Hugging Face Transformers and requires a Vox runtime/image that already provides PyTorch with CUDA. CPU execution is not supported by the official Dia Transformers runtime used by this adapter.

The current Vox adapter is classified for Linux x86_64 CUDA/Torch runtimes. CPU, ONNX, and Spark/ARM NVIDIA paths are not currently production-supported by this adapter. Upstream Dia 1.6B documentation says the model has only been tested on GPUs with PyTorch/CUDA and that CPU support is future work: https://github.com/nari-labs/dia#hardware-and-inference-speed

Plan for at least 12GiB of usable VRAM budget: upstream reports that the full Dia 1.6B model requires around 10GB of VRAM, and Vox budgets the adapter's 10GB model estimate plus the deployment's configured VRAM headroom. A server started with --max-vram 10GiB --vram-headroom 1GiB will reject Dia at load time.

During vox pull, the adapter verifies or installs the Dia-capable Transformers runtime into $VOX_HOME/runtime/dia. It uses the released transformers==4.57.6 runtime rather than a moving source checkout, so clean pulls are reproducible. Model weights remain in the normal Vox model store.

Use with Vox

vox pull dia-tts:1.6b

Dia prompt control is text-driven. Use speaker tags and non-verbal markers in the input text, for example:

[S1] This is Dia speaking. (laughs) [S2] Keep the tags sparse or artifacts can appear.

The adapter supports Dia's audio-prompt voice cloning path when Vox resolves a stored cloned voice into both reference_audio and reference_text. Dia needs the reference transcript for the reference clip; requests with reference audio but no reference text are rejected clearly.

The adapter also exposes Dia generation parameters through Vox synthesis params:

  • max_new_tokens (integer, default 3072, range 1..8192)
  • guidance_scale (number, default 3.0, range 0..10)
  • temperature (number, default 1.8, range 0..3)
  • top_p (number, default 0.9, range 0..1)
  • top_k (integer, default 45, range 0..200)

Project details


Download files

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

Source Distribution

vox_dia-0.2.14.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

vox_dia-0.2.14-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file vox_dia-0.2.14.tar.gz.

File metadata

  • Download URL: vox_dia-0.2.14.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for vox_dia-0.2.14.tar.gz
Algorithm Hash digest
SHA256 278605089790e51a69e1607ad28306dca6e8304fb94ef242576ff1ba50534f44
MD5 a3f1861a258381fa4867adbc4a5c4b14
BLAKE2b-256 ce99fd6041af0fed69d1f6d7dcceb48c6df9563f30b2ecd9b77f95dbd0318791

See more details on using hashes here.

File details

Details for the file vox_dia-0.2.14-py3-none-any.whl.

File metadata

  • Download URL: vox_dia-0.2.14-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for vox_dia-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 188923d5d3e1f2cb479392a1a9312509fdc039be5a3b1f59cd9187335b461385
MD5 643801da1240f8a0acd3681788ed875f
BLAKE2b-256 56029537fb17c43cf820b6a5cfe4ba7755a37dbde642b3a33cb74414d7a83475

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page