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
localtts-20250621.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

20250621.1 This release

1 release file

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