Token2Audio Server Package
Project description
Token2Audio Package
This package provides a Token2Audio server for audio synthesis.
Installation
# 无 GPU(默认):
pip install token2audio
# 有 NVIDIA GPU:
pip install token2audio[gpu]
# 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.10.tar.gz
(1.3 MB
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.10.tar.gz.
File metadata
- Download URL: token2audio-0.1.10.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f54d0040e7f08f2fcc3ac2f0961dd339f9529c9bf5ecec38294613ee0718608
|
|
| MD5 |
4d57477c969744bc937b55e04bb4b4cc
|
|
| BLAKE2b-256 |
bb7d4f8ccec6a5e5e1f2e94444c957c30021a93441d1f872a4f2a31e71dd40eb
|
File details
Details for the file token2audio-0.1.10-py3-none-any.whl.
File metadata
- Download URL: token2audio-0.1.10-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dea7a10c171b12ac394a17aff8a01a46e6ec7ba06aeafab850eab842826748fb
|
|
| MD5 |
137c2be8b29dfc6596a4093599406c7a
|
|
| BLAKE2b-256 |
f7c12ae7e93170d1b90cad682caa45bcb11259d6138054b719b747af8194a7ca
|