-
Notifications
You must be signed in to change notification settings - Fork 641
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
Getting Bad request error for enrolment - Speaker Recognition #66
Comments
It seems like an API problem, I've tried hitting the actual endpoint with a POST request along with the documentation specified parameters and headers. I get the response { 'status' : 'Bad request', message: 'Not a valid WAVE file - No RIFF header'. I've tried with multipart/form-data and using file input from postman REST client. I've also tried to hit the API endpoint in the actual console provided by Microsoft (which doesn't have any way to pass the wave file as file input) by encoding the audio file into string(which starts with data:audio/wav;base64..) Can anyone from Microsoft answer this. I know its in preview stage, but it should have some understandable instructions and parameter details. |
Hi @rajagopal28, |
I've used 3 files, I'm attaching all the three @momohs I see that you are from Microsoft. In the API console link for enrolling and verifying there are text fields to send the audio file, In what format it should be sent? I used base64 encoded text (as mentioned above), I get the same error. Can you please clarify this? Thanks for your comment. |
It looks like the enrollment audio is too short. The audio file should be at least 20 seconds long and no longer than 5 minutes. The minimum number of total speech needed for enrollment, after removing silence, is 60 seconds. @momohs - one improvement to consider is to include the response body in the exception. In this case it would have made the error much more obvious: |
@cthrash Thank you so much. It worked, I enrolled a voice phrase to the created profile. |
@rajagopal28 I have tried out the files you sent and I did some successful enrollments with them. However, the file "password.wav" has an incorrect sampling rate. and thus gave me an "incorrect sampling rate error". I have used a REST client for this. Regarding the python wrapper, the enrollments were successful but I have received a "Bad request" for the file "password.wav". Indeed the exception needs to be better handled in the python wrapper. Using the console, I am not sure how to attach the file to the request. I am in contact with the team responsible for that. I'll get back to you once it is sorted out. @cthrash The "Audio Too Short" exception message is currently thrown out by the server if the audio is too short. At this moment, the audio should be from 1 to 15 seconds (as mentioned in the API Documentation) |
1-15 seconds, IIUC, is for Speaker Verification. In the Stack Overflow Post, @rajagopal28 is asking (despite the title) about Speaker Identification, as you can see from the call stack. |
Hello, I am also having problems enrolling an audio file in the API testing console. Please can you answer the question that @rajagopal28 asked, what format should be used in the Request body field? I am getting the same error: { My file is recorded according to the required parameter values of format and length. Any help would be greatly appreciated. Thanks a lot. |
Thanks for your feedback @jjsuarez! |
This issue was moved to microsoft/Cognitive-SpeakerRecognition-Python#2 |
I am getting follwing response - { |
I am getting "InvalidPhrase" as well. What could be the cause? |
Also getting "InvalidPhrase". Regardless of the audio length. |
Hey guys, I also encounter this Using the following API to List All Supported Verification Phrases. |
i used python sample code code but it is giving error "message": "Invalid Audio Format: Require Mono" |
@kiranmahto use “Audacity” software with which you can convert the audio file to the required format. For the Speaker Verification service the audio file should be in specific format eg. Mono channel not dual, sampeling rate..etc. you will find these in the documentation of the API, i can share the link tomorrow |
Ok thanks
Please do share the links
…On Jan 15, 2019 18:29, "soso-maitha" ***@***.***> wrote:
@kiranmahto <https://github.com/kiranmahto> use “Audacity” software with
which you can convert the audio file to the required format. For the
Speaker Verification service the audio file should be in specific format
eg. Mono channel not dual, sampeling rate..etc. you will find these in the
documentation of the API, i can share the link tomorrow
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AjJC7G-TWJuaN5jbrrGHORlmP1Awvs11ks5vDdCVgaJpZM4IgBtU>
.
|
All audio files in the dataset should be stored in the WAV (RIFF) audio format. Also search in Pluralsight (the website or the app) search for Microsoft speech and Speaker Recognition course it is explained step by step. |
Hi,
I've been trying to enroll a voice file for a created profile using the python API.
I was able to create a profile and list all profiles successfully. But when I try to enroll a voice (.wav) file with a simple hello world phrase with the created profile, I get the error 'ERROR:root:Error enrolling profile.' which in the trace tells 'Exception: Error enrolling profile: Bad Request'. If needed I can attach the stack trace. Can you help me getting started with this?
The text was updated successfully, but these errors were encountered: