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.
Remarks
If you run this in a VM, you may see Could not initialize NNPACK! Reason: Unsupported hardware. in the logs. This seems to happen on heterogeneous CPU architectures,
like my AMD Ryzen AI 7 HX 370. Solutions seems to be either running bare-metal or pass the L3 cache information to the VM and tweak CPU affinity.
Metadata
Release files for wyoming-kokoro-torch 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wyoming_kokoro_torch-3.2.0.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wyoming_kokoro_torch-3.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.8 kB
Release files / wyoming_kokoro_torch-3.2.0.tar.gz
| Download URL | wyoming_kokoro_torch-3.2.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f79431a2770ff732ad9d8ae4c64ecf7f61eda86622f8e7c89eee3174ffb0323
|
|
BLAKE2b-256 checksum How to use checksums |
7f3ca8048a34a901d9f05e119088aba26db6f578e56bf745ef7facfe17c4b3d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / wyoming_kokoro_torch-3.2.0-py3-none-any.whl
| Download URL | wyoming_kokoro_torch-3.2.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d22c84d8afd1675f3848f0a59b46ae0f8e5a169ce6597e15237c0ef596da7769
|
|
BLAKE2b-256 checksum How to use checksums |
66c49022e0156f783449c3fd5342ca2bfb306c10d6e89bd29b542169bf985fe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|