Tag Ai
How to use ElevenLabs text-to-speech in Unity
A simple script to add ElevenLabs text-to-speech to your Unity game.
ElevenLabs offers the best text-to-speech API on the market, and it is my go-to service when I want to have very good results. I had to add text-to-speech to Unity’s demos a lot of times in the last months, and I decided to share the basic script I use to do it.
Utility-based AI for Games
Finite-State Machines (FSM) are the bread-and-butter of game AI due to their simplicity (both in implementation and theory) and effectiveness. As such, FSMs are the topic of many tutorials and guides. Unfortunately, most of them focus on the States part of FSM. After all, they are called Finite-State Machines, so you expect that states are the critical part.
Well, no. The critical part is the other: transitions.
Transitions can make or break your AI independently of how carefully crafted the states are. In other words, intelligence is in change, and the element of change in an FSM is represented by transitions.