Actors don't work in films without detailed contracts, so the normal rules don't necessarily apply in that situation. The producers of Her might have the right to use SJ's likeness in related material. In any case, if they made another movie with a soundalike, the soundalike would be credited and not just called "A", so there would be no confusion about whose voice it was.