Skip to main content

Your local TTS model inference framework.

Project description

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 ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

localtts-20250621-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file localtts-20250621-py3-none-any.whl.

File metadata

  • Download URL: localtts-20250621-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for localtts-20250621-py3-none-any.whl
Algorithm Hash digest
SHA256 2be1c31954f5008db5f132b66ae25e76a6c82dcbfe0b85964b9c6d83b7bf9e59
MD5 ab01ca118e79268d25af03319eaed13e
BLAKE2b-256 247167639c08aad3c0b8451ce3dc770cd9f0ae395e2d700ccbcb7ef81a1d034b

See more details on using hashes here.

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