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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| localtts-20250621-py3-none-any.whl | Python 3 | none | any | Details for localtts-20250621-py3-none-any.whl |
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
|
Security for localTTS 20250621
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.