Smartphone makers are shifting more artificial intelligence tasks onto dedicated chips inside the handset, rather than sending photos and voice.