Skip to content

Disconnect audio worklet when trial ends #1

Description

@becky-gilbert

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:

  1. Install/build the plugin
npm install
npm run build
  1. Start a local server
npx http-server . -p 8000    
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions