Skip to main content

Wyoming Server for Kokoro Torch

Project description

Wyoming Kokoro Torch

Wyoming protocol server for the original Kokoro Torch TTS implementation.

Contrary to other Wyoming implementation, wyoming-kokoro, this is one uses Torch instead of ONNX. As of the time of writing, our implementation also supports streaming mode, while the ONNX one doesn't. Streaming is important for LLM-based assistant, so that it can start speaking before the LLM is finished generating.

Local Install

Clone the repository and set up Python virtual environment:

git clone https://github.com/debackerl/wyoming-kokoro-torch.cpp.git
cd wyoming-kokoro-torch
script/setup

Download the base model:

mkdir /data
wget -O /data/kokoro-v1_0.pth https://huggingface.co/hexgrad/Kokoro-82M/resolve/main/kokoro-v1_0.pth
wget -O /data/config.json https://huggingface.co/hexgrad/Kokoro-82M/resolve/main/config.json

Run a server anyone can connect to:

script/run --voice af_heart --streaming --uri 'tcp://0.0.0.0:10300' --data-dir /data --download-dir /data

See available voices.

Project details


Download files

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

Source Distribution

wyoming_kokoro_torch-3.1.0.post1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

wyoming_kokoro_torch-3.1.0.post1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file wyoming_kokoro_torch-3.1.0.post1.tar.gz.

File metadata

File hashes

Hashes for wyoming_kokoro_torch-3.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 4ce4fe0e42de47957b2f34926b94bc8d22c798ee8968047b5bfa71470e3a6101
MD5 394a13785aa3aea53b8a95aae4eefd8d
BLAKE2b-256 4ffe6fb2abe8e6218c2cbd1ab4da8c07f217234a8ce2d693f1d8f63c4e21f3b7

See more details on using hashes here.

File details

Details for the file wyoming_kokoro_torch-3.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for wyoming_kokoro_torch-3.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a73a0bc78f07c076535ffd9f1ca48e8ed501ad2fce23b73c3f1c8d6f845306
MD5 203363407e9acf56afebe48539ca801a
BLAKE2b-256 cf7dbb875445b2f9259dca1680aaa66ec1329b2ebd326fc5b62116f479e1e2bc

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