Wit.ai api integration

$ curl -XPOST ‘https://api.wit.ai/dictation?v=20220622
-i -L
-H “Authorization: Bearer $TOKEN”
-H “Content-Type: audio/wav”
–data-binary “@audio.wav

I try to integrate wit.ai for transcription of an audio .wav file. The wit.ai api documentation doesn’t give a clue about if it is multi part or json body type. I’m getting 400 error. (unsupported content type) And as it is data binary, I’m completely lost. Even if I configure Api, do I have to convert file to binary data before sending to wit.ai

link to Wit.ai doc: (Transcribe an audio file) Wit.ai