kokoro-onnx


Namekokoro-onnx JSON
Version 0.4.3 PyPI version JSON
download
home_pageNone
SummaryTTS with kokoro and onnx runtime
upload_time2025-02-27 00:32:55
maintainerNone
docs_urlNone
authorNone
requires_python<3.13,>=3.9
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # kokoro-onnx

TTS with onnx runtime based on [Kokoro-TTS](https://huggingface.co/spaces/hexgrad/Kokoro-TTS)

🚀 Version 1.0 models are out now! 🎉

https://github.com/user-attachments/assets/00ca06e8-bbbd-4e08-bfb7-23c0acb10ef9

## Features

- Supports multiple languages 
- Fast performance near real-time on macOS M1
- Offer multiple voices
- Lightweight: ~300MB (quantized: ~80MB)

## Setup

```console
pip install -U kokoro-onnx
```

<details>

<summary>Instructions</summary>

1. Install [uv](https://docs.astral.sh/uv/getting-started/installation) for isolated Python (Recommend).

Basically open the terminal (PowerShell / Bash) and run the command listed in their website.

_Note: you don't have to use `uv`. but it just make things much simpler. You can use regular Python as well._

2. Create new project folder (you name it)
3. Run in the project folder

```console
uv init -p 3.12
uv add kokoro-onnx soundfile
```

4. Paste the contents of [`examples/save.py`](https://github.com/thewh1teagle/kokoro-onnx/blob/main/examples/save.py) in `hello.py`
5. Download the files [`kokoro-v1.0.onnx`](https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.onnx), and [`voices-v1.0.bin`](https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin) and place them in the same directory.
6. Run

```console
uv run hello.py
```

You can edit the text in `hello.py`

That's it! `audio.wav` should be created.

</details>

## Examples

See [examples](examples)

## Voices

See the latest voices and languages in [Kokoro-82M/VOICES.md](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/VOICES.md)

Note: It's recommend to use misaki g2p package from v1.0, see [examples/language.py](examples/language.py)

## Contribute

See [CONTRIBUTE.md](CONTRIBUTE.md)

## License

- kokoro-onnx: MIT
- kokoro model: Apache 2.0

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "kokoro-onnx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "thewh1teagle <61390950+thewh1teagle@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/78/ba/73aa64fa4fe21f24ac0d4c4afc99e80ab2eef7897c2d9c2ea7e7c56e2717/kokoro_onnx-0.4.3.tar.gz",
    "platform": null,
    "description": "# kokoro-onnx\n\nTTS with onnx runtime based on [Kokoro-TTS](https://huggingface.co/spaces/hexgrad/Kokoro-TTS)\n\n\ud83d\ude80 Version 1.0 models are out now! \ud83c\udf89\n\nhttps://github.com/user-attachments/assets/00ca06e8-bbbd-4e08-bfb7-23c0acb10ef9\n\n## Features\n\n- Supports multiple languages \n- Fast performance near real-time on macOS M1\n- Offer multiple voices\n- Lightweight: ~300MB (quantized: ~80MB)\n\n## Setup\n\n```console\npip install -U kokoro-onnx\n```\n\n<details>\n\n<summary>Instructions</summary>\n\n1. Install [uv](https://docs.astral.sh/uv/getting-started/installation) for isolated Python (Recommend).\n\nBasically open the terminal (PowerShell / Bash) and run the command listed in their website.\n\n_Note: you don't have to use `uv`. but it just make things much simpler. You can use regular Python as well._\n\n2. Create new project folder (you name it)\n3. Run in the project folder\n\n```console\nuv init -p 3.12\nuv add kokoro-onnx soundfile\n```\n\n4. Paste the contents of [`examples/save.py`](https://github.com/thewh1teagle/kokoro-onnx/blob/main/examples/save.py) in `hello.py`\n5. Download the files [`kokoro-v1.0.onnx`](https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/kokoro-v1.0.onnx), and [`voices-v1.0.bin`](https://github.com/thewh1teagle/kokoro-onnx/releases/download/model-files-v1.0/voices-v1.0.bin) and place them in the same directory.\n6. Run\n\n```console\nuv run hello.py\n```\n\nYou can edit the text in `hello.py`\n\nThat's it! `audio.wav` should be created.\n\n</details>\n\n## Examples\n\nSee [examples](examples)\n\n## Voices\n\nSee the latest voices and languages in [Kokoro-82M/VOICES.md](https://huggingface.co/hexgrad/Kokoro-82M/blob/main/VOICES.md)\n\nNote: It's recommend to use misaki g2p package from v1.0, see [examples/language.py](examples/language.py)\n\n## Contribute\n\nSee [CONTRIBUTE.md](CONTRIBUTE.md)\n\n## License\n\n- kokoro-onnx: MIT\n- kokoro model: Apache 2.0\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "TTS with kokoro and onnx runtime",
    "version": "0.4.3",
    "project_urls": {
        "Homepage": "https://github.com/thewh1teagle/kokoro-onnx",
        "Issues": "https://github.com/thewh1teagle/kokoro-onnx/issues",
        "Repository": "https://github.com/thewh1teagle/kokoro-onnx"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1c62c3294cd887678dd47a1ea823208323d26c726680273d4af81aaa825fe490",
                "md5": "c5fe5627e18e70ff39e10accb7c72b9c",
                "sha256": "bd6542b35ebc269bbad30c0e7d16a0392cb35c55c17550fc565188667b9cd9fe"
            },
            "downloads": -1,
            "filename": "kokoro_onnx-0.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c5fe5627e18e70ff39e10accb7c72b9c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 17645,
            "upload_time": "2025-02-27T00:32:53",
            "upload_time_iso_8601": "2025-02-27T00:32:53.447892Z",
            "url": "https://files.pythonhosted.org/packages/1c/62/c3294cd887678dd47a1ea823208323d26c726680273d4af81aaa825fe490/kokoro_onnx-0.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "78ba73aa64fa4fe21f24ac0d4c4afc99e80ab2eef7897c2d9c2ea7e7c56e2717",
                "md5": "fc38b4e2d0df7200db89f88b4da22341",
                "sha256": "eaf84b1358aff638514d5ec0df58023748bd4be73cacc27fa431eb9cedd5b40d"
            },
            "downloads": -1,
            "filename": "kokoro_onnx-0.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "fc38b4e2d0df7200db89f88b4da22341",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 78569,
            "upload_time": "2025-02-27T00:32:55",
            "upload_time_iso_8601": "2025-02-27T00:32:55.703491Z",
            "url": "https://files.pythonhosted.org/packages/78/ba/73aa64fa4fe21f24ac0d4c4afc99e80ab2eef7897c2d9c2ea7e7c56e2717/kokoro_onnx-0.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-27 00:32:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thewh1teagle",
    "github_project": "kokoro-onnx",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "kokoro-onnx"
}
        
Elapsed time: 0.71479s