๐ Quick Start
โ Unity Requirements
- com.whisper.unity must be installed. You can get it from the official GitHub repository.
- Add two sprites to your project (these are used for the "microphone enabled" and "microphone disabled" states).
- UnityNeuroSpeech is developed for Unity 6 (6000.0.47f1). Other versions might work, but Unity 6 is highly recommended.
๐ Other Requirements
- Ollama installed (along with any LLM you want to use).
- Python 3.11 installed.
- A downloaded Whisper model.
- At least one
.wav
file for voice cloning.
๐ก What are these tools?
- Ollama is a platform for running large language models (LLMs) locally. You can use models like DeepSeek, Gemma, Qwen, etc. Avoid small modelsโthey might affect accuracy and context understanding.
- Python 3.11 โ use this specific version because it's stable and tested with this framework.
- Whisper is a speech-to-text model. You can use lightweight versions like
ggml-tiny.bin
for speed, or heavier ones likeggml-medium.bin
for better accuracy.
โ๏ธ Base Setup
-
Go to the UnityNeuroSpeech GitHub repository and download the following three files from the latest Release:
UnityNeuroSpeech.X.X.X.zip
โ main framework filesTTSModel.zip
โ pretrained XTTS modelSetup.zip
- files for quick automatic setup
-
Create a new empty folder anywhere on your computer (name it however you like).
- Unpack
Setup.zip
-
Drag all the following into that folder:
- Contents from
Setup.zip
- Two other
.zip
archives mentioned above
- Contents from
-
Run
RunPowershell.bat
-
After setup finishes, you'll see a new folder
UnityNeuroSpeech X.X.X
. Open it and drag the.unitypackage
into your Unity project. Do not move or import the other files. Keep them outside the Unity project folder. -
Place your
.wav
voice files intoServer/Voices
.
Each file must follow the naming pattern:en_voice.wav
,ru_voice.wav
, etc. -
In the
UnityNeuroSpeech
folder, youโll see an emptyWhisper/
folder. Drop your Whisper.bin
model file into it.
Some folders (like
Whisper/
) may contain.txt
placeholder files.
These are only used to ensure Unity exports the folder. You can safely delete them after setup.
โ Done! Youโre ready to build your first talking AI agent.