do not auto-record after teacher finished speaking
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
378b62a42c
commit
981945a0f0
1 changed files with 1 additions and 6 deletions
|
@ -155,12 +155,7 @@ Teacher: Good job! How about Magic – something special and powerful.
|
|||
audio.play();
|
||||
|
||||
audio.onended = () => {
|
||||
if (mediaRecorderRef.current && audioStreamRef.current) {
|
||||
audioChunksRef.current = [];
|
||||
mediaRecorderRef.current.start();
|
||||
setIsRecording(true);
|
||||
monitorSilence();
|
||||
}
|
||||
// Do nothing here — wait for user to press the button
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue