ποΈ Buidling Game
You canβt just hit Build
and expect UnityNeuroSpeech to work out of the box in your final game build.
But donβt worry β it takes less than a minute to set it up properly.
π Adding Whisper files in build folder
After building your game, go to the Managed
folder.
There, create folders that match the Model Path
value you set in the SetupWhisperPath
script.
ποΈ Example 1
If you wrote:
UnityNeuroSpeech/Whisper/ggml-medium.bin
Then create a UnityNeuroSpeech
folder β inside it, a Whisper
folder β then put your model .bin
file in there.
ποΈ Example 2
If you wrote:
Imports/Frameworks/UnityNeuroSpeech/Whisper/ggml-medium.bin
Then replicate that entire folder structure.
π Adding Server
folder in build folder
Just drag the entire Server
folder (from the UnityNeuroSpeech zip) into your gameβs build folder.
Also, donβt forget to include the run_server.bat
file.
Youβll need to run this .bat
file every time you launch the game.
π‘ Tip: Make a Startup Script
You can make a simple .bat
file that launches both the TTS server and the game:
@echo off
start run_server.bat
start YouGameName.exe
β Thatβs it! Now your AI agents will talk even in the final build.
Have fun! :)