Skip to content
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

use startContinuousRecognitionAsync can't get the callback in recognizing when choose the new custom base model #2319

Open
rywork opened this issue Mar 28, 2024 · 2 comments
Assignees
Labels
custom speech in-review In review service-side issue update needed For items that are in progress but have not been updated

Comments

@rywork
Copy link

rywork commented Mar 28, 2024

image

my jscode like this:

async function initSpeechSDK(stream, config) {
  const apiKey = config.apiKey;
  const region = config.region;
  const endpointId = config.endpointId;
  const speechConfig = SpeechSDK.SpeechConfig.fromSubscription(apiKey, region);
  speechConfig.endpointId = endpointId;
  speechConfig.enableAudioLogging();
  speechConfig.setProperty(
    SpeechSDK.PropertyId.SpeechServiceConnection_InitialSilenceTimeoutMs,
    "1000"
  );
  speechConfig.speechRecognitionLanguage = "en-US";
  // speechConfig.speechRecognitionLanguage = "ja-JP";

  const audioConfig = SpeechSDK.AudioConfig.fromStreamInput(stream);
  recognizer = new SpeechSDK.SpeechRecognizer(speechConfig, audioConfig);

  recognizer.recognizing = (s, e) => {
    console.log(`RECOGNIZING: 。。。。`);
  };

  recognizer.recognized = (s, e) => {
    console.log(e);
    if (e.result && e.result.text && e.result.text != "") {
      console.log(`RECOGNIZEDJS: Text=${e.result.text}`);
      window.parent.postMessage(
        { type: "recognized", text: e.result.text },
        "*"
      );
    } else {
      console.log("RECOGNIZED: No valid text recognized");
    }
  };

  recognizer.startContinuousRecognitionAsync();
}

and when i use new latest model,i can't get anything in recognizing and the recognized callback is

SpeechRecognitionEventArgs {privSessionId: '13F0947C7CD04D368E67989CED55660D', privOffset: 92700000, privResult: SpeechRecognitionResult}

i tried a lot of way to fix my code but nothing change until i choose the old version model...then i can get the recognized response and there is a callback in recognizing

@rhurey
Copy link
Member

rhurey commented Mar 28, 2024

Thanks for getting in touch with this issue.

Using the Session ID (Thanks for providing it.) I can see that the service telemetry isn't showing intermediate results being generated much. (There's a small number, but they're pretty rare)

I sent this issue over to the service team, their internal tracking number 487639481 and they or I will update when there's more information.

Thanks again.

Copy link

github-actions bot commented May 1, 2024

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
custom speech in-review In review service-side issue update needed For items that are in progress but have not been updated
Projects
None yet
Development

No branches or pull requests

3 participants