Map each entry to its own cue (used when entries are already phrase-level).
(words: Word[])
| 343 | |
| 344 | /** Map each entry to its own cue (used when entries are already phrase-level). */ |
| 345 | function 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 |
no test coverage detected