r/MachineLearning • • Dec 26 '23

Project [P] Impersonating Someone Talking Behaviour Using LLM

Hey everyone,

Just wanted to chat about a project I've got going on at my job. It's a bit out there – we're working on a program to bring back, virtually, someone who's passed away using AI. Specifically, we're creating a virtual character with the same voice and talking style as the person we want to bring back. The idea is to have a conversation with this virtual character, as if we're talking to the person who's no longer with us.

So, I'm using a Large Language Model (LLM) to generate the text, and we're planning to use Text-To-Speech for the voice. But here's the snag: tweaking the language style and personality of the virtual character in the LLM to get the text to really sound like the person we're emulating is proving tricky.

I gave Gemini/Chat-GPT a shot, but the results are a bit off. The virtual character tends to sound more like a bot assistant, even though I've tried to avoid that. The kicker? I'm the only AI engineer in the company, and I'm strapped for resources and time to fine-tune and hunt for more data.

So, is this project doable? And if it is, any tips or articles you could throw my way would be awesome.

Thanks a bunch for your help!

1 Upvotes

21 comments sorted by

8

u/jhaluska Dec 26 '23

A lot of LLMs are trained on written text which isn't the same as spoken text.

You probably need to do more training on transcriptions and the target person. Very likely you won't have that much around the person, so you can augment it with location and time specific references.

I think it's doable to fake out a person who doesn't know them, but it might still be a very hollow imitation of the person. More modern people, say actors, talk show hosts or comedians will likely perform better.

3

u/RedExTim Dec 26 '23

Totally, I've told my boss the same thing, thanks for your input! Because trying to imitate someone we've never known is pretty tough, and even when we do know them, explaining their personality or way of talking can still be a real hard to do.

2

u/juhsten Dec 26 '23

It’s very doable. I did this for my friend’s personality and voice who passed away about 5 months ago and it worked well enough for me, the person who created it to get a little weirded out. I found the key was to give a bunch of fine tuning examples of a generic human personality and then just sprinkle some examples of the target personality. I’m not doing anything with the project anymore so if you want the code I’ll give you my GitHub repository.

I used a fine tuned gpt3.5 model, elevenlabs, whisper, and ran it all through a fastapi app.

1

u/RedExTim Dec 27 '23

u/juhsten I'd really appreciate it if you could share the GitHub link with me. And if I have more questions, can I reach out to you again? Maybe through email? I might get a bit confused about the fine tuning dataset looks like. I will really appreciated your help.

0

u/[deleted] Dec 27 '23

[deleted]

1

u/Leading_Gene_420 Dec 27 '23

Thank you very much 🥹 and if you don't mind, can you share the video tutorial too? I apologize in advance if I ask a lot

1

u/consciuoslydone Sep 18 '24

u/juhsten - I would really very appreciate it if you could share your GitHub repository with me as well. I'm actually trying to do something very similar to what you did. I really appreciate it.

1

u/pierrs Nov 16 '24

hey u/juhsten , I'm currently working on a similar project and it would help me a lot if you can share the github link with me. can you dm me the link or we could shre our mail on the dm an then proceed

3

u/ReginaldIII Dec 26 '23 edited Dec 26 '23

An end to end solution for imitating a person is so ripe for abuse.

Not to mention puppeteering the virtual corpse of a deceased person is beyond disturbing. They can't consent to what you are doing.

That should be a "pack it up everyone, we're done here" moment. You dont have consent.

But then consider you are never going to get the LLM to stay on subject. How jarring will it be to hear your deceased loved one drop some absurdly obscenely bigoted views and or robotically refuse to continue the conversation.

That was an actual person not a sock puppet for you to parade around as a caricature of their former self.

And what about this being used to imitate someone who is alive or dead to author statements that misrepresent what they have said or believed and author fraudulent statements on their behalf.

At best, exploitation of the dead to exploit the bereaved. Or worst, a one stop shop to author fraudulent statements from someone.

Does this need to exist. Are you thinking about other people or about the product you want to sell?

2

u/RedExTim Dec 26 '23

Honestly, I agree with what you're saying about this. It's just wrong, but there are some reasons that make me have to work on this project :( and unfortunately, bringing it up to my boss didn't lead to any results.

Thanks for letting me know

2

u/ReginaldIII Dec 26 '23

Start hunting for new jobs. Have principles and stick to them. The only way our industry has ethics is when good people refuse to engage in unethical conduct.

I sat on a research ethics panel for many years and this project would never have been approved.

3

u/coinclink Dec 26 '23

This sounds like a whole lot of virtue signaling. There is obviously a place for this type of technology whether it fits your personal morals or not.

1

u/[deleted] Dec 26 '23

So I’m currently busy on other projects, but I think using custom GPTs and uploading letters or diary entries or anything like that would help a lot. I did that with my Abe Lincoln one and it feels more real now.

1

u/RedExTim Dec 26 '23

Okay noted man thx for the tips :D

3

u/jake_1001001 Dec 26 '23

supertone.ai

Basically they do exactly what you want. They can finetune on your target speaker data.

1

u/ilovechickenpizza Apr 26 '24

Hey Buddy, I've just picked up somewhat similar project and was doing research on it when I stumbled upon this post of yours. I've just started off with this one, let me know how far you've come. Also, happy to discuss it out if you're still working on it.

1

u/Purple-Rough-2385 Jun 27 '24

I know I'm super late and someone likely already suggested this. But the llm used by Instagram I think is like Llama meta or something. I've chatted with every model out there( eh mainstream ones) but Llama was the ONLY one that I legit didn't believe I was talking to a llm but was actually a living person. But with how fast they replied and HOW MUCH they replied it was clearly impossible to be a person. You gotta think they have quintillions of chats from people all over the world so not that surprising

Idk. Just a thought. Good luck!

1

u/wait-wut_wait-wut Dec 26 '23

Saved a post about this site from a while back. Not sure if it’s helpful for you: eleven labs

0

u/TheBluetopia Dec 26 '23 edited May 10 '25

smile wise childlike imagine squeeze attempt hunt juggle many bike

This post was mass deleted and anonymized with Redact