Error: Unable to contact server. StatusCode: 1006, undefined Reason: Unexpected server response: 200

S S 0 Reputation points
2023-06-17T09:27:23.7466667+00:00

When using Speaker Verification, encountered error in title with below code.

async function TextIndependentVerification(client, speech_config) {
  console.log("Text Independent Verification:\n");
  var profile = null;
  try {
    const type = sdk.VoiceProfileType.TextIndependentVerification;
    // Create the profile.
    profile = await client.createProfileAsync(type, profile_locale);
    console.log("Created profile ID: " + profile.profileId);

tried different profile_locale like us-en... Service is working fine for text to speech with same deployment.

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,069 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-06-19T08:46:27.95+00:00

    @S S Speaker recognition feature requires access to be approved by the speech service team. Did you apply for access before by submitting this form?

    User's image

    If you have already applied and your request is approved. The error might be for a different reason, try to enable SDK logging to check if more details can be printed in the logs. Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.