Convert an existing audio file into text?

Does anyone know a way to convert an existing audio file into text?
The current situation is that if you play an audio file and then start the microphone, the audio output is turned off.