Skip to main content

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 directory
    • app.py: FastAPI application factory
    • server.py: Server entry point
    • protocol.py: Protocol definitions
    • handlers/: Request handlers
    • models/: Model implementations
    • utils/: Utility functions
    • flashcosyvoice/: CosyVoice2 implementation

Release files for token2audio 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for token2audio 0.1.10
File Size Uploaded
token2audio-0.1.10.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for token2audio 0.1.10
File Interpreter ABI Platform
token2audio-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size:2.6 MB

Release files / token2audio-0.1.10.tar.gz

Download URL token2audio-0.1.10.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
1f54d0040e7f08f2fcc3ac2f0961dd339f9529c9bf5ecec38294613ee0718608
BLAKE2b-256 checksum
How to use checksums
bb7d4f8ccec6a5e5e1f2e94444c957c30021a93441d1f872a4f2a31e71dd40eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / token2audio-0.1.10-py3-none-any.whl

Download URL token2audio-0.1.10-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dea7a10c171b12ac394a17aff8a01a46e6ec7ba06aeafab850eab842826748fb
BLAKE2b-256 checksum
How to use checksums
f7c12ae7e93170d1b90cad682caa45bcb11259d6138054b719b747af8194a7ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page