A company can't take a photo from your Facebook and plaster it across an advertisement for their product without you giving them the rights to do that.
And if you're a known public figure, this includes lookalikes and soundalikes as well. You can't hire a ScarJo impersonator that people will think is ScarJo.
This is clearly a ScarJo soundalike. It doesn't matter whether it's an AI voice or clone or if they hired someone to sound just like her. Because she's a known public figure, that's illegal if she hasn't given them the rights.
(However, if you generate a synthetic voice that just happens to sound exactly like a random Joe Schmo, it's allowed because Joe Schmo isn't a public figure, so there's no value in the association.)
If you imitate Darth Vader, I don't think James Earl Jones has as much case for likeliness as Star Wars franchise
If you just want ScarJo's (or James Earl Jones') voice, you need the rights from them. Period.
If you want to reuse the character of her AI bot from the movie (her name, overall personality, tone, rhythm, catchphrases, etc.), or the character of Darth Vader, you also need to license that from the producers.
And also from ScarJo/Jones if you want the same voice to accompany the character. (Unless they've sold all rights for future re-use to the producers, which won't usually be the case, because they want to be paid for sequels.)