I'm pretty sure with enough voice data you can make people say just about anything, and Tupac left behind a ton of voice data.
All they use is soundforge, and it's trivial. You can achieve perfect results with modern software and algorithmic assistance.