Skip to main content

Token2Audio Server Package

Project description

Token2Audio Package

This package provides a Token2Audio server for audio synthesis.

Installation

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

Project details


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.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

token2audio-0.1.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file token2audio-0.1.0.tar.gz.

File metadata

  • Download URL: token2audio-0.1.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for token2audio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e6c5a3ce37d8d97f60b1e1c01e94bad8183c9c18a361e6630406c8fdfc8992ee
MD5 3e54e699c7a3ce5a21b9744220afd765
BLAKE2b-256 0fc3c0b4a8f1df793df276b55f5c9656727919ed1756cdeb681ac3efb9cef118

See more details on using hashes here.

File details

Details for the file token2audio-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: token2audio-0.1.0-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

Hashes for token2audio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d78951db8255e3af701e56973b1ad017b5e12d2c8b3d64f9504608d7238ccd0
MD5 9daf1c236306b33df2df7b33d667d5a7
BLAKE2b-256 7bd0d731658aa37c972c3d1cd054439e887227a9122575664c6e279ac8ec1c3f

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