isOpenAiWhisperTranscript()v4.0.530
Recognizes structural signatures of an OpenAI Whisper verbose JSON transcription. This function does not validate a transcript: recognizable malformed input may return true. Use openAiWhisperApiToCaptions() to validate and convert it.
recognize.tsimport {isOpenAiWhisperTranscript} from '@remotion/openai-whisper'; const recognized = isOpenAiWhisperTranscript(input); // boolean
API
input
An unknown value, such as parsed JSON. Recognition does not depend on the file name and does not throw for malformed values.
Return value
A boolean indicating whether a Whisper verbose transcription signature was recognized. true does not establish that its fields or timings are valid.
Compatibility
| Browsers | Servers | Environments | |||||||
|---|---|---|---|---|---|---|---|---|---|
Chrome | Firefox | Safari | Node.js | Bun | Serverless Functions | ||||