A Unity 6 integration for Orpheus-TTS. This package provides a high-performance, local neural text-to-speech solution leveraging ONNX Runtime and Llama.cpp.
Orpheus TTS is designed for real-time conversational AI and interactive storytelling. Unlike traditional robotic TTS, this package provides:
- Exceptional Realism: Built on a Llama-3B backbone, the model understands context, resulting in natural intonation, rhythm, and empathetic delivery.
- Guided Emotions: Support for specialized tags (e.g.,
<laugh>,<sigh>,<gasp>) allows you to inject genuine human emotion into the runtime speech. - Ultra-Low Latency: Optimized for streaming, the system is capable of very low-latency audio generation, making it ideal for live runtime streaming and interactive NPCs.
- Consumer GPU Ready: The implementation is designed to run efficiently on consumer-grade GPUs with as little as 6GB VRAM.
- Local & Private: Everything runs on your machine. No API keys, no subscription fees, and no data leaves the user's device.
- API Support: Currently supports Vulkan only.
- Platform: Windows (Vulkan backend).
Follow these steps exactly to ensure all native dependencies are resolved.
Open your project's Packages/manifest.json and update it to include the scoped registry and the Git dependencies.
{
"scopedRegistries": [
{
"name": "npm",
"url": "https://registry.npmjs.com",
"scopes": [
"com.github.asus4"
]
}
],
"dependencies": {
"com.github.asus4.onnxruntime": "0.4.2",
"com.github.asus4.onnxruntime.unity": "0.4.2",
"ai.lookbe.llamacpp": "https://github.com/lookbe/llama-cpp-unity.git",
"ai.lookbe.orpheustts": "https://github.com/lookbe/orpheus-tts-unity.git",
... other dependencies
}
}You must download the following two models separately:
- Orpheus TTS (GGUF format): e.g., orpheus-3b-0.1-ft-Q4_K_M-GGUF.
- SNAC Decoder (ONNX format): You must use the exact
decoder_model.onnxfile from snac_24khz-ONNX.
Watch the demo here:
https://www.youtube.com/watch?v=C_OG9O5hsXw
- Import Samples: Go to the Package Manager, select Orpheus TTS Unity, and import the BasicTTS sample.
- Configure Paths:
- Select the
OrpheusTTSobject in the Hierarchy. - In the Inspector, locate the Orpheus Model Path and SNAC Model Path fields.
- Important: Paste the absolute path (e.g.,
C:\Models\orpheus.gguf) for both files.
- Select the
- Run: Press Play. The system will initialize the Vulkan backend on your GPU.
Note: You can extend the component script to use
Application.streamingAssetsPathif you wish to bundle models with your build, but the core component requires absolute paths for the initial backend load.
Orpheus TTS supports experimental voice cloning. This process requires a specific two-step workflow to achieve the best results.
-
Orpheus-TTS Developed by Canopy AI – A high-quality text-to-speech engine.
-
onnxruntime-unity Developed by asus4 – ONNX Runtime integration for the Unity engine.
If this helps you, consider supporting me:
