How do I implement GPT into an NPC?

Hey everyone,

So I recently have seen some examples of GTP-3 and chatGPT being used as a way to create procedurally generated NPC dialogue.

From this casual research I am greatly inspired by it all, however I want to create a small little project where I can implement GPT into an NPC.

The way I want to tackle this is to create a system that allows speech-to-text > text-to-text (GPT) > text-to-speech. This way the player can speak to the NPC, and the NPC speaks right back. Using vocals. Not just by text.

Are there any resources and tutorials out there that I am completely missing?

Everytime I try and search for answers, I am overwhelmed by tons of “chatGPT developed this game!” content, when that is not what I am looking for.

Thank you!

Have a look here: Introducing ChatGPT and Whisper APIs

I don’t think there are any plugins for the newer versions as Chat GPT-4 recently released. Also, I am not fully aware if you need to pay to get access to the API.

If you have registered for OpenAI, I suggest you try ChatGPT before implementing the API.

Working on this too, so far I’ve found there is a UE plugin that has to be manually installed. Simple to do though. It’s listed in the OpenAI docs

Bump