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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: localtts-20250621.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4684fd442fc79e1162155e87986c0a550c5491f1466a62d93fe2db4a8e2241ce
MD5 21ea43f1af04c7d9c825c36310c09db0
BLAKE2b-256 37713a18e6aa825bb180c7aa80aedb57ad1c83fa035fd6b1ed21ff41b54d9e71

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