I'm getting a 500 error when converting a simple MP3 file from speech to text using the Wit.ai site.
I'm thinking the WAV I'm sending is not in the right format. Here's my conversion:
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 input.wav
This gives me a WAV file with pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s
Here's my request:
curl -X "POST" "https://api.wit.ai/speech?v=20160526" \
-H "Authorization: Bearer TOKEN_HERE" \
-H "Content-Type: audio/wav"
I'm sending the file as binary content in the request. I also tried MP3 but it does not work either. Any idea why?