# `dapi media transcribe ` Transcribes the speech in a video or audio asset and returns the timed transcript. Word-level start/end times are in **seconds** (source/content time). ## Input - ``: a video or audio asset id, or a local file to transcribe in place without adding it to the library (required). The whole asset is transcribed once per app session (cached in memory, keyed by file content, for ids and paths alike; an app restart or an edited file re-transcribes). ## Output One JSON object, the transcript: ```ts { segments: Array<{ text: string; // spoken words only (no silence markers) words: Array<{ text: string; start: number; end: number }>; // seconds }>; } ``` ## Errors Exits non-zero if the id is unknown or the asset is not a video/audio asset, or if no speech is detected in the audio at all (`No speech detected`).