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-servicexdp-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_openvinois now supported intts_config.json.- For
cosyvoice3_0.5b_openvino, setmodel_dir/ov_model_dirto the OpenVINO-exported directory andoriginal_model_dirto 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 setcheckpoint_pathto 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.shafter changingtext_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
- For a user-facing CosyVoice3 OpenVINO setup and API usage guide, see README_COSYVOICE3.md.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xdp_tts_service-0.1.1-py3-none-any.whl.
File metadata
- Download URL: xdp_tts_service-0.1.1-py3-none-any.whl
- Upload date:
- Size: 60.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f64b291bdae61650bd856de5c9ab04caff0404f6c209bddb9b312e7dac39e37
|
|
| MD5 |
9d4cee8aad46d7616a6b85cabcacb706
|
|
| BLAKE2b-256 |
2eef24b5eff937cfa975586ca598db3caf059e223f7eea05065ca3f5c3796cc0
|