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
// Pick up only last second element (the last and last but one are non transcript elements), since Meet mutates previous blocks to make minor corrections. Picking them up leads to repetitive transcript blocks in the result.
// Starting fresh in a meeting or resume from no active transcript
321
+
if(transcriptTextBuffer===""){
328
322
personNameBuffer=currentPersonName
329
323
timestampBuffer=newDate().toISOString()
330
324
transcriptTextBuffer=currentTranscriptText
331
325
}
332
-
// Same transcript UI block being appended
326
+
// Some prior transcript buffer exists
333
327
else{
334
-
// Update buffer for next mutation
335
-
transcriptTextBuffer=currentTranscriptText
328
+
// New person started speaking
329
+
if(personNameBuffer!==currentPersonName){
330
+
// Push previous person's transcript as a block
331
+
pushBufferToTranscript()
332
+
333
+
// Update buffers for next mutation and store transcript block timestamp
334
+
personNameBuffer=currentPersonName
335
+
timestampBuffer=newDate().toISOString()
336
+
transcriptTextBuffer=currentTranscriptText
337
+
}
338
+
// Same person speaking more
339
+
else{
340
+
// 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
0 commit comments