You can follow the process of making this project here: https://youtu.be/IRUnoKp7SoA
I tried to make a new kind of NPC powered by Chat GPT and Unreal Engine 5. AI features text to speech and speech to text while generating all the answers on the fly by accessing OpenAI's API.
Don't forget to add OpenAI and Azure Plugin!