Skip to main content

@twick/ai-models / Exports / CaptionGenerationInput

Interface: CaptionGenerationInput

Table of contents

Properties

Properties

audioUrl

Optional audioUrl: string

Defined in

orchestration-types.ts:62


autoDetectLanguage

Optional autoDetectLanguage: boolean

When true (default for ai-caption jobs), the backend should attempt to auto-detect the spoken language from the audio instead of relying solely on the explicit language field.

Defined in

orchestration-types.ts:80


language

Optional language: string

Defined in

orchestration-types.ts:63


languageFont

Optional languageFont: string

Defined in

orchestration-types.ts:64


phraseLength

Optional phraseLength: CaptionPhraseLength

Desired subtitle phrase granularity. The backend maps this preset to pause and duration-aware segmentation thresholds instead of fixed word chunking.

Defined in

orchestration-types.ts:70


videoUrl

Optional videoUrl: string

Defined in

orchestration-types.ts:61


wordsPerPhrase

Optional wordsPerPhrase: number

Deprecated

Use phraseLength instead.

Defined in

orchestration-types.ts:74