There is an exception error when enroll profile in speaker recognition using python. RRS feed

  • Question

  • I make a wav file using arecord command in Ubuntu. (used option is : -r 16000 -c 1 -t wav -f S16_LE)

    The wav file is played using aplay command and other music player.

    I created a user profile and check profile using PrintAllProfile.py.

    I checked correct subscribe key and profile id.

    When I enroll user profile using test.wav file, I met some error like below.

    ERROR:root:Error enrolling profile.
    Traceback (most recent call last):
      File "EnrollProfile.py", line 32, in <module>
        enroll_profile(sys.argv[1], sys.argv[2], sys.argv[3])
      File "EnrollProfile.py", line 15, in enroll_profile
        enrollment_response = helper.enroll_profile(profile_id, file_path)
      File "/opt/MSOxford/ProjectOxford-ClientSDK-master/SpeakerRecognition/Python/Verification/VerificationServiceHttpClientHelper.py", line 109, in enroll_profile
        raise Exception('Error enrolling profile: ' + res.reason)
    Exception: Error enrolling profile: Bad Request

    How can I solve it?

    And How can I test speaker recognition feature in web site? How can I add binary data of wav file for body at https://dev.projectoxford.ai/docs/services/563309b6778daf02acc0a508/operations/56406930e597ed20c8d8549c/console?

    Wednesday, April 20, 2016 9:46 AM


  • Thanks for your interest in the Speaker Recognition service.

    Several reasons can result in having a bad request, so could you please share the error description you receive? By description I mean something like "Invalid Phrase", "Invalid Audio Format" ... etc.

    Thursday, November 10, 2016 9:17 AM