added auto retry to speech recognition api if there is a network error