Pakistan’s opposition used artificial intelligence for the first time to deliver a speech penned by jailed former Prime Minister Imran Khan in his voice.