20
2019
(Free) Runtime Text To Speech Plugin

Needed simple TTS plugin for a small unity windows game that i’m working on.. I know asset store has few, but they seem to rely on Windows Speech platform voices, and one plugin that was completely standalone didnt really have good enough speech quality..
First i tried to use Mozilla-TTS (to generate voice files in advance), but it was impossible to get it to compile due to some weird tricks needed. Then found espeak-ng, which seems good enough quality and already had dotnet wrapper available! I Compiled speak dll with VisualStudio, had few issues with the wrapper, but got them fixed – compare Client.cs with the original. Next issue was DLL kept crashing, fixed it by using DLLManipulator.
Unity project:
https://github.com/unitycoder/UnityRuntimeTextToSpeech
Note:
See github issues for known issues and ideas to improve this.
Updates:
Now outputs to AudioSource component, thanks to updates from @autious fork.
Related Posts
7 Comments + Add Comment
Leave a comment
Recent posts
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












So cool. What platforms does this work on? IOS? Android?
not tested, but pretty sure that the DLL doesnt work on those platforms. (and especially because of using the DLLManipulator, which needs to read dll file from specific folder or so).
Better use those paid asset store versions, they work on many platforms.
Cool.
¿It is possible to change the language?
try this
https://github.com/unitycoder/UnityRuntimeTextToSpeech/issues/3
Will this work offline? If not recommend other.
Actually, need offline TTS.
yes, its offline.
list of alternatives
https://github.com/unitycoder/UnityRuntimeTextToSpeech/wiki/Alternative-TTS-plugins