title: Convert multiple MP3 files to WAV in python
body: <p>I want to convert multiple MP3 audio files in a folder to WAV format (with mono type) using python code.</p>
  
  <p>I tried the below code using pydub:</p>
  
  <pre><code>import os
  from pydub import AudioSegment
  
  audio_files = os.listdir('path')
  # Folder is having audio files of both MP3 and WAV formats
  len_audio=len(audio_files)
  for i in range (len_audio):
      if os.path.splitext(audio_files[i])[1] == ".mp3":
         mp3_sound = AudioSegment.from_mp3(audio_files[i])
         mp3_sound.export("&lt;path&gt;\\converted.wav", format="wav")
  </code></pre>
  
  <p>I am getting how will i export the converted wav file with different file names.</p>
  
  <p>please suggest</p>