Skip to main content

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 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.2.tar.gz (16.1 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.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: token2audio-0.1.2.tar.gz
  • Upload date:
  • Size: 16.1 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.2.tar.gz
Algorithm Hash digest
SHA256 4b63103b8d5403c075f75274dbd74233fcf5c9fe10b57f200b00192bd7c13be6
MD5 a7cb58df3f811c21f168ea99df611d1f
BLAKE2b-256 102a4b6b48820caeb33fe44d0014f366d41dd2478b1895384fe8b68fdb0a3678

See more details on using hashes here.

File details

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

File metadata

  • Download URL: token2audio-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cebdd6179a33113a96e7aa7ce783d31c1e59867738d98af96dabd2b7bd7675aa
MD5 b07ef09c5f61a8eac87f2e9619a555a8
BLAKE2b-256 81c381edcd9473c7bd91153d2bf7b2b9ce94cacb86884ba629d6a5e67c342c0e

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