microsoft / Cognitive-SpeakerRecognition-Android

Android SDK for Microsoft Speaker Recognition API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speaker-recognition-api
Other
46 stars 34 forks source link

Invalid Audio Format: Not a WAVE file - no RIFF header #22

Open Glauber26 opened 4 years ago

Glauber26 commented 4 years ago

I am developing an application and I record the user's speech using the phone's microphones, save the recording in a 16 bit PCM encoded .wav file ... just as the documentation says. However when sending to the API I get the following response: {"error": {"code": "BadRequest", "message": "Invalid Audio Format: Not a WAVE file - no RIFF header"}}. I tried setting the header RIFF but was unsuccessful, could anyone help me?