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

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
File Interpreter ABI Platform
localtts-20250621-py3-none-any.whl Python 3 none any Details

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

Download URL localtts-20250621-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2be1c31954f5008db5f132b66ae25e76a6c82dcbfe0b85964b9c6d83b7bf9e59
BLAKE2b-256 checksum
How to use checksums
247167639c08aad3c0b8451ce3dc770cd9f0ae395e2d700ccbcb7ef81a1d034b
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 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