INNER CODE UNIT · TypeScript

group

iurysza/module-graph · .agents/skills/audio-transcribe/scripts/transcribe.ts:228

    const group = groups.at(-1);
    if (!group || group.speaker !== speaker) {
      groups.push({
        speaker,
        startSeconds: offsetSeconds + startSeconds,
        words: [word],
      });
    } else {
      group.words.push(word);
    }
  }

  if (groups.length === 0) {
    throw new Error("Gemini returned no timestamped word annotations.");
  }

  return groups
    .map(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…