The record button currently records for strictly 4 seconds. Instead, we want to be able to stop recording once no more speech is detected for some amount of time. This will require making some changes to how the Web Audio objects are managed, and I'm not sure exactly how to know when no more speech is happening (Does Web Audio provide some way? Do we need to implement audio processing ourselves? Or is there a lib?).
As an alternative, we may want to simply show a countdown timer (f.e. a path along a circle that contracts smaller and smaller around the circle), so the user has a constant-but-known time limit to say responses.
The record button currently records for strictly 4 seconds. Instead, we want to be able to stop recording once no more speech is detected for some amount of time. This will require making some changes to how the Web Audio objects are managed, and I'm not sure exactly how to know when no more speech is happening (Does Web Audio provide some way? Do we need to implement audio processing ourselves? Or is there a lib?).
As an alternative, we may want to simply show a countdown timer (f.e. a path along a circle that contracts smaller and smaller around the circle), so the user has a constant-but-known time limit to say responses.