Skip to main content

AiStreamTranscriptionResult

interface
interface AiStreamTranscriptionResult

Import

import { AiStreamTranscriptionResult } from '@modular/sdk';

Members6

final
PromiseLike<AiTranscriptionError | { durationInSeconds: number | null; language: string | null; segments: { endSecond: number; id: string & $brand<'AiTranscriptionSegmentId'>; speaker: { id: string & $brand<'AiTranscriptionSpeakerId'>; label: string } | null; startSecond: number; text: string; words: { confidence: number | null; endSecond: number; startSecond: number; text: string }[] }[]; text: string; warnings: { code: 'local-feature-limit' | 'provider-warning'; message: string }[] }>
fullStream
AiAsyncIterableStream<AiTranscriptionStreamPart>
segments
PromiseLike<AiTranscriptionError | readonly { endSecond: number; id: string & $brand<'AiTranscriptionSegmentId'>; speaker: { id: string & $brand<'AiTranscriptionSpeakerId'>; label: string } | null; startSecond: number; text: string; words: { confidence: number | null; endSecond: number; startSecond: number; text: string }[] }[]>
text
PromiseLike<string | AiTranscriptionError>
cancel
(reason?: unknown) => Promise<AiTranscriptionError | undefined>
stop
() => Promise<AiTranscriptionError | undefined>