I’ve integrated the OpenAI API into my game’s dialog system. Instead of writing dialog directly, characters use a custom prompt for each dialog line.
NPC dialog lines are generated on the fly and are different every time.
Here’s a video of it in action: AI Generated Video Game Dialog with Real-Time Text-to-Speech - YouTube
Here’s a post with more details: OpenAI API Generated Video Game Dialog With Real-Time Text-to-Speech - Doomlaser