The problem: You have 50 hours of video depositions. You suspect the CEO contradicted the CTO on the breach timeline, but you can’t re-watch everything.The solution: Transcribe the audio, search by topic, and use AI to find contradictions.
// Wait for completionasync function waitForTranscription(jobId: string) { let result = await client.voice.transcription.retrieve(jobId); while (result.status !== 'completed') { if (result.status === 'error') throw new Error('Transcription failed'); await new Promise(r => setTimeout(r, 10000)); result = await client.voice.transcription.retrieve(jobId); } return result;}const transcript = await waitForTranscription(job.id);// Deliver speaker-labeled transcript to your userfor (const utterance of transcript.utterances) { console.log(`${utterance.speaker}: ${utterance.text}`);}
Help your users extract insights from transcripts:
// Analyze transcript for your userconst analysis = await client.llm.v1.chat.createCompletion({ model: 'anthropic/claude-sonnet-4.5', messages: [ { role: 'system', content: 'Summarize this transcript. Identify key points, action items, and any notable quotes.' }, { role: 'user', content: transcript.text } ]});// Return analysis to your userconsole.log(analysis.choices[0].message.content);
Example output:Build advanced features like contradiction detection for legal applications:
// Search for statements about a specific topicconst statements = await client.vault.search(vault.id, { query: 'timeline of events on July 15th', topK: 10});// Use AI to identify contradictionsconst contradictions = await client.llm.v1.chat.createCompletion({ model: 'anthropic/claude-sonnet-4.5', messages: [ { role: 'system', content: 'Analyze these statements and identify any contradictions. Cite specific quotes.' }, { role: 'user', content: statements.chunks.map(c => c.text).join('\n\n') } ]});console.log(contradictions.choices[0].message.content);
Time saved: What used to take days of re-watching video now takes minutes. The AI finds contradictions you might have missed.