commcoach: fix mobile speech recognition restart clearing state every 5s
Made-with: Cursor
This commit is contained in:
parent
b28a7fcf33
commit
e91eca025a
1 changed files with 0 additions and 3 deletions
|
|
@ -229,9 +229,6 @@ export const CommcoachDossierView: React.FC = () => {
|
|||
_dlog('REC-END', `cancelled=${cancelled} sameRef=${speechRecognitionRef.current===recognition}`);
|
||||
// #endregion
|
||||
if (cancelled) return;
|
||||
setIsUserSpeaking(false);
|
||||
transcriptPartsRef.current = [];
|
||||
setLiveTranscript('');
|
||||
if (speechRecognitionRef.current === recognition) {
|
||||
try { recognition.start(); } catch { speechRecognitionRef.current = null; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue