mcut
@mcut/transcription-local

mergeChunkWords

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription-local/src / mergeChunkWords

Function: mergeChunkWords()

function mergeChunkWords(results): TranscriptWord[];

Defined in: packages/transcription-local/src/chunking.ts:56

Merge consecutive chunk transcripts on word timestamps rather than concatenating: inside each overlap the cut lands on the largest silence between the incoming chunk's words (falling back to the overlap midpoint), the outgoing chunk keeps words before the cut, the incoming one after. This absorbs the timestamp drift Whisper accumulates near window edges.

Parameters

results

ChunkResult[]

Returns

TranscriptWord[]

On this page