microsoft / ProjectOxford-ClientSDK

This repo has moved :house: Visit our website for the latest SDKs & Samples
https://www.microsoft.com/cognitive-services/en-us/sdk-sample
Other
964 stars 642 forks source link

Speaker Recognition API returns bad request with no further message #95

Open snake-doctor opened 7 years ago

snake-doctor commented 7 years ago

Hi

I am sending my wav file to api see below

RequestMessage {Method: POST, RequestUri: 'https://westus.api.cognitive.microsoft.com/spid/v1.0/identificationProfiles/034f5efa-a536-4d9b-a90f-38686c8eb263/enroll?shortAudio=True', Version: 1.1, Content: System.Net.Http.MultipartFormDataContent, Headers: { Ocp-Apim-Subscription-Key: 72d89b96c4434b7ba8377b51aaaeb211 Content-Type: multipart/form-data; boundary="54a6b99e-b621-4c65-b445-08476656aec2" Content-Length: 223 }} System.Net.Http.HttpRequestMessage

I get the ff in return

clientResponse {StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers: { Pragma: no-cache apim-request-id: e82122b7-4dc1-4a96-bd51-7be46dc05a7e Strict-Transport-Security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff Cache-Control: no-cache Date: Tue, 18 Apr 2017 12:50:28 GMT X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Content-Length: 83 Content-Type: application/json; charset=utf-8 Expires: -1 }} System.Net.Http.HttpResponseMessage

Kindly help

NeelBhatt commented 7 years ago

I am facing the same issue. Does anyone know the solution?