MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / entriesToCues

Function entriesToCues

packages/cli/src/whisper/normalize.ts:345–351  ·  view source on GitHub ↗

Map each entry to its own cue (used when entries are already phrase-level).

(words: Word[])

Source from the content-addressed store, hash-verified

343
344/** Map each entry to its own cue (used when entries are already phrase-level). */
345function entriesToCues(words: Word[]): Cue[] {
346 const cues: Cue[] = [];
347 for (const word of words) {
348 pushCue(cues, { text: word.text, start: word.start, end: word.end });
349 }
350 return cues;
351}
352
353// Han + Hiragana + Katakana + CJK symbols/fullwidth. These scripts are written
354// without spaces between tokens, so whisper's per-token output must be joined

Callers 1

wordsToCuesFunction · 0.85

Calls 1

pushCueFunction · 0.85

Tested by

no test coverage detected