When the trial ends, the audio worklet that processes the mic input will keep running. You can see the worklet's output continuing in the console. We need to disconnect the worklet and do any other necessary teardown/clean up when the trial ends.
@tonyh1306 you can check this with the following:
- Install/build the plugin
npm install
npm run build
- Start a local server
npx http-server . -p 8000
- In the browser, with the console open, go to http://127.0.0.1:8000/examples/picture_naming.html. Try speaking after the stimulus appears, then stop. See the console logs - you should see logs for speech/silence onsets. The background should also change to red when speech is detected, and back to white when speech stops.
When the trial ends, the audio worklet that processes the mic input will keep running. You can see the worklet's output continuing in the console. We need to disconnect the worklet and do any other necessary teardown/clean up when the trial ends.
@tonyh1306 you can check this with the following: