Token2Audio Server Package
Project description
Token2Audio Package
This package provides a Token2Audio server for audio synthesis.
Installation
pip install token2audio
# or from source
pip install .
Usage
download pre-trained models:
python -m token2audio.download /path/to/models
You can run the server directly using the command line:
python -m token2audio.server --model-path /path/to/models --host 0.0.0.0 --port 8000
Or import and run in Python:
from token2audio import run_app
# Run the server (will parse command line arguments)
if __name__ == "__main__":
run_app()
Development
The package structure is as follows:
token2audio/: Main package directoryapp.py: FastAPI application factoryserver.py: Server entry pointprotocol.py: Protocol definitionshandlers/: Request handlersmodels/: Model implementationsutils/: Utility functionsflashcosyvoice/: CosyVoice2 implementation
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 Distribution
token2audio-0.1.1.tar.gz
(15.8 kB
view details)
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 token2audio-0.1.1.tar.gz.
File metadata
- Download URL: token2audio-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22e3a05b261df130f2178e3bb606bf79b467add6145c2b185969aa3aa34df9f1
|
|
| MD5 |
750512afc459001b9616f1b45c234d3d
|
|
| BLAKE2b-256 |
9193be324fa2f18406104f2526e1bd83e90e073b71a90454f8ba0a2d82ef19ef
|
File details
Details for the file token2audio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: token2audio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35b5574ed1a6bfea6e81079fb01eb7da37da0a746c25f4206737161972953db6
|
|
| MD5 |
840cbf7fe2ef0708def70253830d0621
|
|
| BLAKE2b-256 |
dc55aa2feef784de8c03cd4688b3d46ab9e40b927913f0e2c9de9b97b713c063
|