In this demo, a Trump simulator impersonated by AI where you get to have a full conversation by speech with him, answered with an AI voice that also impersonates him, all of this in virtual reality. We used 3 AI models (ChatGPT, Whisper, FakeYouTTS).

Inspiration

We were inspired by wanting to create AI characters in video games. We wanted to test out how it could be done with Open AI models and Unity.

What it does

The user can talk with any character, and AI will replicate a persona. For our demo, the user can talk to Donald Trump by speech. Open AI Whisper's model recognizes and transcribes the speech to text. This prompt is then sent to our back end that queries ChatGPT. It returns a text, a facial expression and a body movement. The text is then sent to a text to speech model, FakeYouTTS, that impersonates Trump's voice, and sends back a URL to the audio file. Unity thus receives a JSON of these information, where it downloads the audio file and the body movement associated will make Trump move while he speaks (the audio file plays). The user can continue to converse with Donald Trump was long as they wish.

How it works

Unity send a request of the user's speech input to the back end that does API calls to openAI models such as ChatGPT or models such as FakeYouTTS. Wee use Whisper model to get the speech of the user, and transcribe it to text.

Challenges

We ran into challenges with the animation of the character. We had to make sure that animations looped and transitioned correctly.

What are we proud of

Impersonates perfectly with animation, text to speech, speech to text. VR is included as initially planned. 3 AI Models!

What we learned

How to make AI characters with unity

What's next for Never Lay Down

We want to incorporate more characters.

Built With

+ 3 more
Share this project:

Updates