Azure-Samples / AzureSpeechReactSample

This sample shows how to integrate the Azure Speech service into a sample React application. This sample shows design pattern examples for authentication token exchange and management, as well as capturing audio from a microphone or file for speech-to-text conversions.
MIT License
126 stars 77 forks source link

SpeechRecognizer Continuous Recognition Displaying "the object is already disposed" error when run on localhost:3000 [Error appears on the normal browser but works fine on Incognito mode] #9

Open geraldleemingmaxis opened 3 months ago

geraldleemingmaxis commented 3 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. Clone [AzureSpeechReactSample] code with continuous recognition example
  2. Replace SPEECH_KEY and SPEECH_REGION with appropriate key and region
  3. npm i
  4. npm run dev
  5. Open browser localhost:3000
  6. Get object is already disposed error

Expected/desired behavior

Object is already disposed error on http://localhost:3000

OS and Version?

Windows 10 Cognitive Services Speech SDK 1.32.0

Mention any other details that might be useful

Error screen:

object disposed error

Thanks! Hope to hear from you soon