title: Google Speech to Text on WAV file gives
body: <p>I am using the Google Speech to Text API to convert a WAV file to text. When I play the WAV file, it works fine but when I run the Google Speech To Text API I get this error:</p>
  <pre><code>WAV header indicates an unsupported format.
  </code></pre>
  <p>When I try to analyze the file using <code>ffmpeg</code> tool, it get the following error:</p>
  <pre><code>Output #0, wav, to '/home/shubham/workspace/intent-service/scripts/audio2.tmp.wav':
  Metadata:
    ISFT            : Lavf57.83.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
    Metadata:
      encoder         : Lavc57.107.100 pcm_s16le
  [gsm_ms @ 0x55d4c255cd20] Packet is too small
  Error while decoding stream #0:0: Invalid data found when processing input size=7924kB time=00:08:27.16 bitrate= 128.0kbits/s speed=3.72e+03x    
  video:0kB audio:7924kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000961%
  </code></pre>
  <p>What am I missing?</p>