Retrieve the timestamped transcription for a video. Supports multiple segmentation types and time ranges.
Copy
Ask AI
import videodbconn = videodb.connect(api_key="your_api_key")coll = conn.get_collection()video = coll.get_videos()[0]# Get full transcript with word-level timestampstranscript = video.get_transcript()for segment in transcript: print(f"{segment['start']:.2f}s - {segment['text']}")# Get plain text transcripttext = video.get_transcript_text()print(f"Full text: {text}")
Returns timestamped transcript with start, end, and text for each segment
Segmentation supports: word (default), sentence, and time-based
Can retrieve partial transcripts using start/end time parameters (in seconds)
Generates transcript if not already created
Use force: true to regenerate transcript instead of returning cached version