How do i make a character talk?,how to make an avatar talk

So first im trying to make a simulator game but then i wanted to make my character talk so how can i do this?,I need help, im making a game (Simulator game) and i wanna make my character talk so please answer how i do this thank u for reading

You’ll need to get an audio file of someone talking off the web or record it yourself, but when would you need the talking to activate? Just throughout the game? Or when you click a Button?

Or do you need a text bubble sort of thing?

I wanna make him talk in the game so when u pass a tripwire he talks do u know how to do it? If u do can u help me with game?