Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"message": "Invalid Audio Format: Not a WAVE file - no RIFF header" #92

Closed
Crasheng opened this issue Nov 4, 2016 · 2 comments
Closed

Comments

@Crasheng
Copy link

Crasheng commented Nov 4, 2016

"message": "Invalid Audio Format: Not a WAVE file - no RIFF header"
"message": "Invalid Audio Format: Not a WAVE file - no RIFF header"

I am Overwhelmed really,

I am trying hard to identify what is the problem and i do not know.

I have used the sample code in Python to make an enrollment, and it succeeded!!
but when it comes to Android, i stay now for 3 days try to figure out the issue and i am not able to know.

`

 @Headers({"Ocp-Apim-Subscription-Key: insertAPIkEYHERE", "Content-Type: multipart/form-data"})
 @Multipart
 @POST("identificationProfiles/{identificationProfileId}/enroll")
 Call<ResponseBody> createEnrollment(
        @Path("identificationProfileId") String profileId,
        @Part MultipartBody.Part audiofile);`

`
File file = new File(filePath);
RequestBody requestFile = RequestBody.create(MediaType.parse("multipart/form-data"), file);
MultipartBody.Part body =
MultipartBody.Part.createFormData("uploaded_file", file.getName(), requestFile);

    Call<ResponseBody> response = clientRest.createEnrollment(profile_id, body);

`
I am overwhelmed

@momohs
Copy link
Member

momohs commented Nov 6, 2016

Moved to correct repo: microsoft/Cognitive-SpeakerRecognition-Android#2

@momohs momohs closed this as completed Nov 6, 2016
@bemesquita
Copy link

@Crasheng did you menage to work? I am having the same problem using Retrofit 2 and still nothing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants