They also used to provide transcripts of voicemail done locally on the phone (although it was not great accuracy)
Edit: Here is the article where apple talks about how "Hey Siri" works: https://machinelearning.apple.com/2017/10/01/hey-siri.html