Downloads · 30 days
0
magicunicorn/kokoro-tts-intel
kokoro-tts-intel is a machine learning model from magicunicorn. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains the Kokoro TTS v0.19 model optimized for Intel integrated GPU acceleration. Part of the Unicorn Orator platform by Magic Unicorn Unconventional Technology & Stuff Inc.
Downloads · 30 days
0
Access
Public
Updated Aug 30, 2025
Repo size
352 MB
Likes
8
Public
Click a slice to open those files.
.onnx326 MB · 93%
From the Hugging Face model README
This repository contains the Kokoro TTS v0.19 model optimized for Intel integrated GPU acceleration. Part of the Unicorn Orator platform by Magic Unicorn Unconventional Technology & Stuff Inc.
| File | Size | Description |
|---|---|---|
kokoro-v0_19.onnx | 311MB | Main TTS model (ONNX format) |
voices-v1.0.bin | 25MB | 50+ voice embeddings |
phoneme_mapping.json | 12KB | Text-to-phoneme vocabulary |
docker pull magicunicorn/unicorn-orator:intel-igpu-v1.0
docker run -p 8885:8880 magicunicorn/unicorn-orator:intel-igpu-v1.0
import onnxruntime as ort
import numpy as np
# Load model with Intel iGPU optimization
providers = [('OpenVINOExecutionProvider', {
'device_type': 'GPU',
'precision': 'FP16'
})]
session = ort.InferenceSession('kokoro-v0_19.onnx', providers=providers)
# Run inference
outputs = session.run(None, {
'tokens': phoneme_ids, # Text as phoneme IDs
'style': voice_embedding, # 256-dim voice vector
'speed': np.array([1.0]) # Speech rate
})
audio = outputs[0] # 24kHz audio waveform
The voices-v1.0.bin file contains 50+ pre-trained voices:
af_bella - Professional female narratoraf_sarah - Warm, friendly toneaf_sky - Young, energeticam_michael - Deep male narratoram_adam - Business professionalbf_emma - BBC-style presenterbm_george - Documentary narratoraf_heart - Emotional, storytellingam_echo - Robotic/AI assistantOn Intel Iris Xe (i7-1165G7):
# Intel GPU drivers
sudo apt-get install intel-opencl-icd intel-level-zero-gpu level-zero
# Python packages
pip install onnxruntime-openvino==1.17.0
pip install numpy soundfile
from kokoro_tts import KokoroTTS
tts = KokoroTTS(device='igpu')
audio = tts.synthesize("Hello world!", voice="af_bella")
texts = ["First sentence.", "Second sentence."]
audios = tts.batch_synthesize(texts, voice="am_michael")
# Blend two voices
voice_blend = 0.7 * voices['af_bella'] + 0.3 * voices['af_sarah']
audio = tts.synthesize("Blended voice test", style=voice_blend)
| Platform | Hardware | Latency | Power | Cost |
|---|---|---|---|---|
| Intel iGPU | Iris Xe | 150ms | 15W | Integrated |
| CPU | i7-1165G7 | 450ms | 35W | Integrated |
| NVIDIA GPU | RTX 3060 | 50ms | 170W | $300+ |
| Apple M1 | Neural Engine | 100ms | 10W | Integrated |
MIT License - Free for commercial use
If you use Kokoro TTS in research:
@software{kokoro_tts_2024,
title = {Kokoro TTS v0.19 - Intel iGPU Optimized},
author = {Magic Unicorn Unconventional Technology & Stuff Inc},
year = {2024},
url = {https://huggingface.co/magicunicorn/kokoro-tts-intel}
}
For issues or questions:
Powered by Magic Unicorn Unconventional Technology & Stuff Inc 🦄