autonomous-metaverse / aingenuity

unnamed experiment
3 stars 3 forks source link

Make the record button finish recording when done talking for an amount of time, rather than strictly after 4 seconds. #5

Open trusktr opened 1 year ago

trusktr commented 1 year ago

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.