Skip to main content

Standalone TTS Flask service package for XDP

Project description

xdp-tts-service wheel packaging

This directory builds a standalone wheel for the TTS Flask service without changing the monorepo layout.

What it does

  • Copies runtime files from text_to_speech/ into a temporary staging directory during build.
  • Bundles a sanitized config template as xdp_tts_service/tts_config.example.json.
  • Uses a standalone dependency list for the wheel instead of the full monorepo environment.
  • Builds a wheel with CLI entrypoints:
    • xdp-tts-service
    • xdp-tts-init-config

The temporary staging directory is deleted automatically after build.

Build

cd /data1/skill_dev/xDataPrep/xdp_service/tts_service
bash build_tts_service_wheel.sh

Wheel will be generated in dist/.

Install

python3 -m pip install dist/xdp_tts_service-0.1.1-py3-none-any.whl

Initialize config

xdp-tts-init-config --output ./tts_config.json

Run service

xdp-tts-service --host 127.0.0.1 --port 5002 --config ./tts_config.json

Notes

  • This wheel does not include model weights.
  • Generated config uses placeholder model paths. Update them before running.
  • cosyvoice3_0.5b_openvino is now supported in tts_config.json.
  • For cosyvoice3_0.5b_openvino, set model_dir/ov_model_dir to the OpenVINO-exported directory and original_model_dir to the original CosyVoice3 model directory.
  • The built wheel bundles the CosyVoice3 OpenVINO helper as text_to_speech/cosyvoice3_ov_helper.py.
  • If the CosyVoice helper is not in the default workspace location, set XDP_COSYVOICE3_OV_HELPER=/absolute/path/to/ov_cosyvoice_helper.py.
  • If the CosyVoice source repo is not in the default location, set XDP_COSYVOICE_REPO=/absolute/path/to/CosyVoice.
  • For qwen3_tts_0.6b_base_openvino, also set checkpoint_path to the original Base PyTorch checkpoint so voice-clone fallback can load the speech tokenizer weights.
  • xDataPrep now vendors the Qwen3 OpenVINO helper in text_to_speech/qwen3_ov_helper.py.
  • The built wheel bundles that vendored helper, so neither source-tree runs nor installed runs need the original notebook helper path.
  • Re-run build_tts_service_wheel.sh after changing text_to_speech/*.py.
  • The wheel is intended to be open-source distributable: no workspace-local helper path and no machine-local default model path are bundled anymore.

Model-Specific Guide

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

xdp_tts_service-0.1.1-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

Details for the file xdp_tts_service-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xdp_tts_service-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f64b291bdae61650bd856de5c9ab04caff0404f6c209bddb9b312e7dac39e37
MD5 9d4cee8aad46d7616a6b85cabcacb706
BLAKE2b-256 2eef24b5eff937cfa975586ca598db3caf059e223f7eea05065ca3f5c3796cc0

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