Add to Unity Package Manager
Paste this URL into Unity's Window › Package Manager › + › Add package from git URL,
or click Install.
https://www.pkglnk.dev/speech.git README
Rendered from GitHubText to Speech In Unity
Important! The current model (fastspeech) does not work well with short phrases. (e.g. "hi", "how are you", etc.)
This package provides a fully functional cross platform Text To Speech engine using deep learning models integrated in Unity with C#!
You can find the example repository here.
Text To Speech
The model that we use for TTS is FastSpeech. The TFLite model that we used is converted from a pre-trained model found in the TensorflowTTS repository.
To prevent Unity from freezing when inferencing the TFLite model, we run the inference process in a new thread and play the audio in the main thread once it is ready.
Installation
- Install OpenUPM-CLI
- Run command in your project folder
openupm add com.github.voxell.unitytts
External dependencies:
- Download the TFLite models from Google Drive and import them into Unity (place them inside the
Assets/StreamingAssetsfolder). - mapper file should be moved oustide
Assets/StreamingAssets - And you are ready to go!
Support the project!
Join the community!
License
This repository as a whole is licensed under the GNU Public License, Version 3. Individual files may have a different, but compatible license.
See license file for details.
References
- Fastspeech
- MelGAN
- All TFLite model inferencing will not be possible without the help of the Unity TFLite repository.
Versions 0
No versions tracked yet.
Changelog 0 releases
No changelog entries yet. Run the admin Changelog & Version Scanner to pull from the repository's CHANGELOG.md.
README Markdown
Copy this to your project's README.md
## Installation
Add **VX Speech Engine** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/speech.git
```
[](https://www.pkglnk.dev/pkg/speech)Embed badge README snippet
[](https://www.pkglnk.dev/pkg/speech) <a href="https://www.pkglnk.dev/pkg/speech"><img src="https://www.pkglnk.dev/badge/speech.svg" alt="pkglnk installs"></a> https://www.pkglnk.dev/badge/speech.svg Comments
No comments yet. Be the first!

Sign in to join the conversation
Sign In