mcut
@mcut/transcription-local

RepetitionOptions

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / transcription-local/src / RepetitionOptions

Interface: RepetitionOptions

Defined in: packages/transcription-local/src/repetition.ts:7

Whisper's classic failure mode on silence/noise: the decoder locks into a loop and emits the same phrase over and over. Detect n-gram repetition so the worker can drop the chunk and retry with a temperature bump.

Properties

maxNgram?

optional maxNgram?: number;

Defined in: packages/transcription-local/src/repetition.ts:9

Longest phrase length (in tokens) checked for looping. Default 4.


minRepeats?

optional minRepeats?: number;

Defined in: packages/transcription-local/src/repetition.ts:11

Consecutive repeats that count as a loop. Default 4 (3 for bigrams+).

On this page