Skip to main content

localTTS

Your local TTS model inference framework.

Supported models:

kokoro

https://github.com/hexgrad/kokoro.git

Add dependency package

pip install kokoro

Usage

from localtts import KokoroTTS as TTS

model_path = './temp/kokoro-82M/kokoro-v1_0.pth'
config_path = './temp/kokoro-82M/config.json'
voice_path = './temp/kokoro-82M/voices/af_heart.pt'
output_path = './temp/result.wav'

tts = TTS(model_path=model_path, config_path=config_path, voice_path=voice_path)

text = '''
The sky above the port was the color of television, tuned to a dead channel.
'''

paths = tts.infer(text, output_path=output_path, return_paths=True)

print("✅ wav file output:")
for path in paths:
    print(f"  → {path}")

To be added ...

Metadata

Release files for localTTS 20250621.1

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

Built distribution (wheel)

Table of built distributions (wheels) for localTTS 20250621.1
File Interpreter ABI Platform Actions
localtts-20250621.1-py3-none-any.whl Python 3 none any Details for localtts-20250621.1-py3-none-any.whl

Release files / localtts-20250621.1-py3-none-any.whl

Download URL localtts-20250621.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4684fd442fc79e1162155e87986c0a550c5491f1466a62d93fe2db4a8e2241ce
BLAKE2b-256 checksum
How to use checksums
37713a18e6aa825bb180c7aa80aedb57ad1c83fa035fd6b1ed21ff41b54d9e71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.6

Security for localTTS 20250621.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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