Skip to main content

@twick/studio - v0.15.0 / Exports / ICaptionGenerationService

Interface: ICaptionGenerationService

Table of contents

Properties

Properties

generateCaptionVideo

Optional generateCaptionVideo: (videoUrl: string, videoSize?: { height: number ; width: number }) => Promise<string>

Type declaration

▸ (videoUrl, videoSize?): Promise<string>

Parameters
NameType
videoUrlstring
videoSize?Object
videoSize.heightnumber
videoSize.widthnumber
Returns

Promise<string>

Defined in

studio/src/types/index.ts:99


generateCaptions

generateCaptions: (videoElement: VideoElement, project: ProjectJSON) => Promise<string>

Type declaration

▸ (videoElement, project): Promise<string>

Parameters
NameType
videoElementVideoElement
projectProjectJSON
Returns

Promise<string>

Defined in

studio/src/types/index.ts:90


getRequestStatus

getRequestStatus: (reqId: string) => Promise<ICaptionGenerationPollingResponse>

Type declaration

▸ (reqId): Promise<ICaptionGenerationPollingResponse>

Parameters
NameType
reqIdstring
Returns

Promise<ICaptionGenerationPollingResponse>

Defined in

studio/src/types/index.ts:104


pollingIntervalMs

Optional pollingIntervalMs: number

Polling interval in milliseconds for caption status checks. Defaults to 5000.

Defined in

studio/src/types/index.ts:109


updateProjectWithCaptions

updateProjectWithCaptions: (captions: CaptionEntry[]) => ProjectJSON

Type declaration

▸ (captions): ProjectJSON

Parameters
NameType
captionsCaptionEntry[]
Returns

ProjectJSON

Defined in

studio/src/types/index.ts:95