Build a speech recognition system for iOS from scratch