title: Python convert mp3 to wav with Pydub
body: <p>Ok, now I am stuck up in converting mp3 to wav. I have seen different answers but i think i would to go for the one of pydub, which i already did using these few lines </p>
  
  <pre><code>from pydub import AudioSegment
  
  AudioSegment.from_mp3("/input/file.mp3").export("/output/file.wav", format="wav")
  </code></pre>
  
  <p>but when I run the above code, i get the following error</p>
  
  <blockquote>
    <p>C:\Python27\lib\site-packages\pydub-0.14.2-py2.7.egg\pydub\utils.py:165: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work</p>
    
    <p>Traceback (most recent call last):
      File "C:/Users/phourlhar/Desktop/VoiceDetector/yeah.py", line 7, in 
        stereo_to_mono()</p>
    
    <p>File "C:\Users\phourlhar\Desktop\VoiceDetector\utils.py", line 25, in
    stereo_to_mono</p>
  
  <pre><code>sound = AudioSegment.from_mp3(PROJECT_DIR+'\\files\\rec'+str(c)+'.mp3')
  </code></pre>
    
    <p>File "build\bdist.win32\egg\pydub\audio_segment.py", line 346, in
    from_file</p>
    
    <p>File "C:\Python27\lib\subprocess.py", line 711, in <strong>init</strong>
        errread, errwrite)</p>
    
    <p>File "C:\Python27\lib\subprocess.py", line 948, in _execute_child
        startupinfo)</p>
    
    <p>WindowsError: [Error 2] The system cannot find the file specified</p>
  </blockquote>
  
  <p>I don't know why it raises this error as i am very sure the file exists. Although i have answers suggesting the installation of ffmpeg, but i dont know if affect the app deployment in any way later on</p>