Quick Start
First, make sure you have Cloudglue set up by following the setup guide.
Using Cloudglue’s Transcribe API, convert your video into structured text content in minutes. Get everything from your video:
- Complete speech transcription
- Scene-by-scene descriptions
- Text shown in the video
- Concise video summary
from cloudglue import CloudGlue
# Initialize client (API key will be loaded from environment)
client = CloudGlue()
# Upload your video file
uploaded = client.files.upload(
'path/to/local/video.mp4',
wait_until_finish=True
)
# Start transcription using the uploaded file URI
transcription = client.transcribe.run(
url=uploaded.uri,
enable_summary=True,
enable_speech=True,
enable_scene_text=True,
enable_visual_scene_description=True,
response_format='markdown'
)
# Print the results
print(transcription.data.content)
For more details about the Python SDK, check out our Python SDK Documentation.
from cloudglue import CloudGlue
# Initialize client (API key will be loaded from environment)
client = CloudGlue()
# Upload your video file
uploaded = client.files.upload(
'path/to/local/video.mp4',
wait_until_finish=True
)
# Start transcription using the uploaded file URI
transcription = client.transcribe.run(
url=uploaded.uri,
enable_summary=True,
enable_speech=True,
enable_scene_text=True,
enable_visual_scene_description=True,
response_format='markdown'
)
# Print the results
print(transcription.data.content)
For more details about the Python SDK, check out our Python SDK Documentation.
/// <reference lib="dom" />
import { CloudGlue } from '@aviaryhq/cloudglue-js';
import * as fs from 'fs';
import * as path from 'path';
const client = new CloudGlue();
const filePath = 'path/to/video.mp4';
// Read and prepare file for upload
const fileBuffer = await fs.promises.readFile(filePath);
const file = new File([fileBuffer], path.basename(filePath));
const uploadResult = await client.files.uploadFile({ file });
const fileDetails = await client.files.waitForReady(uploadResult.id);
// Start transcription and wait for completion
const job = await client.transcribe.createTranscribe(
fileDetails.uri,
{
enable_summary: true,
enable_speech: true,
enable_scene_text: true,
enable_visual_scene_description: true
}
);
const transcribeJob = await client.transcribe.waitForReady(
transcribeJob.job_id,
{
response_format: 'markdown'
}
);
console.log(transcribeJob.data.content);
For more details about the Node.js SDK, check out our JavaScript SDK Documentation.
For more detailed examples and advanced usage, check out our API Reference.