Open peterrookie opened 2 months ago
@peterrookie When the first attempt fails, do you hit the error case? Could you expand the logging to find the error returned by the recognition? I am wondering if there is some kind of race condition with the auth server starting up, or some other delay that the basic sample is not setup to handle?
recognizer.recognizeOnceAsync(result => {
if (result.reason === ResultReason.RecognizedSpeech) {
setDisplayText(`RECOGNIZED: Text=${result.text}`);
} else {
setDisplayText('ERROR: Speech was cancelled or could not be recognized. Ensure your microphone is working properly.');
}
What happened?
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Note: If the previous recognizer is stopped before triggering sttFromMic again, the issue persists.
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
Version
1.35.0 (Default)
What browser/platform are you seeing the problem on?
Microsoft Edge
Relevant log output