You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extension/content.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -334,9 +334,6 @@ function transcriptMutationCallback(mutationsList) {
334
334
}
335
335
// Same person speaking more
336
336
else{
337
-
// Update buffers for next mutation
338
-
transcriptTextBuffer=currentTranscriptText
339
-
340
337
if(canUseAriaBasedTranscriptSelector){
341
338
// When the same person speaks for more than 30 min (approx), Meet drops very long transcript for current person and starts over, which is detected by current transcript string being significantly smaller than the previous one
@@ -347,12 +344,15 @@ function transcriptMutationCallback(mutationsList) {
347
344
timestampBuffer=newDate().toISOString()
348
345
}
349
346
}
350
-
if(!canUseAriaBasedTranscriptSelector){
347
+
else{
351
348
// If a person is speaking for a long time, Google Meet does not keep the entire text in the spans. Starting parts are automatically removed in an unpredictable way as the length increases and TranscripTonic will miss them. So we force remove a lengthy transcript node in a controlled way. Google Meet will add a fresh person node when we remove it and continue transcription. TranscripTonic picks it up as a new person and nothing is missed.
352
349
if(currentTranscriptText.length>250){
353
350
person.remove()
354
351
}
355
352
}
353
+
354
+
// Update buffers for next mutation. This has to be done irrespective of any condition.
0 commit comments