Skip to main content

High-level Python wrapper for Wfloat TTS

Project description

wfloat

wfloat is a high-level Python wrapper around sherpa-onnx for loading Wfloat-compatible speech models and generating audio files.

Install

Install wfloat normally:

pip install wfloat

That will also install the matching wfloat-sherpa-onnx dependency from PyPI.

When installing from this repo locally:

pip install ./packages/wfloat-python

Usage

import wfloat

model = wfloat.load("wfloat/wfloat-tts")

result = model.generate(
    text="The signal is clean. Start the recording.",
    voice_id="narrator_woman",
    emotion="neutral",
    intensity=0.5,
    speed=1.0,
)

result.audio.save("out.wav")

Notes

  • wfloat does not build or bundle native libraries.
  • Low-level bindings come from the installed wfloat-sherpa-onnx dependency, which provides import sherpa_onnx.
  • The public API is intentionally high-level; low-level native config objects are re-exported only for advanced use.

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

wfloat-1.0.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

wfloat-1.0.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file wfloat-1.0.0.tar.gz.

File metadata

  • Download URL: wfloat-1.0.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wfloat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 486fa7161eed718edb14862ae6a5c1bb2b03839f0c14541d885fb2db73bb44b2
MD5 62b9d5382cc482d09c218cb03806a428
BLAKE2b-256 28a9c447c9513f5e4bd703d37172f8b4016ad3a74d8eb94f6f15a4ff82eeb331

See more details on using hashes here.

Provenance

The following attestation bundles were made for wfloat-1.0.0.tar.gz:

Publisher: wheels.yml on wfloat/wfloat-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wfloat-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wfloat-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for wfloat-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 517fbe9d1e10ee4b6d860ca6e9ef1a819f05093dd8f0471712b4add3242064b4
MD5 6117147215f97cb095de72de16377daf
BLAKE2b-256 cda650417bd9ecee093a835164ea1d36fd7be35e063549829ee50a623a2b145b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wfloat-1.0.0-py3-none-any.whl:

Publisher: wheels.yml on wfloat/wfloat-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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