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

I am trying to encroll an audio file but return BadRequest #6

Closed tokiii closed 7 years ago

tokiii commented 7 years ago

Here is my code.

SpeakerVerificationRestClient speakerVerificationRestClient = new SpeakerVerificationRestClient(MY_KEY); try { File file = new File(MY_FILE_PATH); FileInputStream fileInputStream = new FileInputStream(file); Enrollment enrollment = speakerVerificationRestClient.enroll(fileInputStream, UUID); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (EnrollmentException e) { e.printStackTrace(); } } });

It's return { "error": { "code": "BadRequest", "message": "SpeechNotRecognized" }}

M-Sherif-zz commented 7 years ago

Hi @tokiii,

This error means that the service couldn't recognize what is being said in the audio. This might happen for several reasons including: very noisy audio, unclear accent, and non-English speech.