Offline, fast, cross-platform text-to-speech using Unity Inference.SimpleOfflineTTS is a package that will let you generate AudioClips from any text string using Unity Inference. It's completely offline without any networking or services required.It does not have any platform-specific code or libraries, so can be used on any platform supported by the Inference package (Windows, Mac, WebGL and Android tested). Inference can be performed on the CPU or GPU.To generate the voices, free downloadable (.onnx) voice models from Piper are used. Two models are shipped with the package, and you can download any others you require and easily replace them using the Inspector, or build your own API around the text-to-speech code.Unlike some other speech engines, SimpleOfflineTTS does not use the eSpeak-ng libraries, which would be covered by a GPL-v3 licence, making them unusable for commercial purposes. SimpleOfflineTTS uses a custom phonemiser built from scratch in C#, and speech models mostly covered by Creative Commons licences (it's worth checking the MODEL_CARD for all models you intend to use individually).- Fast and high-quality text-to-speech generation- Cross-platform- Offline; no networking required- CPU or GPU-accelerated- Expandable using many free Piper voice modelsI used AI to debug and refine my C# code.




