This example converts audio format in wav to text using Google Api which have build in AVAudioSession to record the audio and convert the audio to text on the fly.