itch.io is community of indie game creators and players

Devlogs

Generating Procedural Video Game Dialog With the OpenAI API and Real-Time Text-to-Speech

GUN FLESH
A downloadable game

NPC dialog lines are generated on the fly, different every time, facilitated by a custom prompt for each line in our custom Unity dialog editor.

Instead of writing the dialog directly, you tell the AI what kind of possibility space to write in, and give it some background. It’s sort of like prepping a kid for an improvisational play.

Speaking lines are sent to Google’s Cloud Text-to-Speech and processed live.

Read more details about this technique and its implications in the full post here: https://doomlaser.com/openai-api-generated-video-game-dialog-with-real-time-text-to-speech/

Leave a comment