title: Python : How to use speech_recognition or other modules to convert base64 audio string to text?
body: <p>I have base64 audio string like <code>data:audio/mpeg;base64,//OAxAAAAANIAAAAABhqZ3f4StN3gOAaB4NAUBYZLv......</code>, and I was trying to convert the base64 to wav file using base64 module in Python:</p>
  <pre class="lang-py prettyprint-override"><code>    decode_bytes = base64.b64decode(encoding_str)
      with open(file_name + '.wav', &quot;wb&quot;) as wav_file:
          wav_file.write(decode_bytes)
  </code></pre>
  <p>Then I was trying to convert the audio to text using speech_recognition module, and it gives error below:</p>
  <pre><code>ValueError: Audio file could not be read as PCM WAV, AIFF/AIFF-C, or Native FLAC; check if file is corrupted or in another format
  </code></pre>
  <p>Is there a solution for this problem?</p>