Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Elevenlabs Elevenlabs python DubbingMetadataResponse

From Leeroopedia
Metadata Value
source Elevenlabs_Elevenlabs_python
domain Dubbing, Localization
last_updated 2026-02-15

Overview

Description: DubbingMetadataResponse is a Pydantic model that represents the metadata for a dubbing project in ElevenLabs. It captures the project identity (dubbing ID, name), processing state (status, error), language information (source language, target languages), editing capability, creation timestamp, and media metadata. This model provides a comprehensive view of a dubbing project's current state and configuration.

Usage: This model is returned by the ElevenLabs Dubbing API when querying dubbing project metadata. It enables developers to track the status of dubbing operations, check which languages a project has been dubbed into, verify editability in Dubbing Studio, and access media properties such as content length and type.

Code Reference

Source file: src/elevenlabs/types/dubbing_metadata_response.py

Class signature:

class DubbingMetadataResponse(UncheckedBaseModel):
    ...

Import statement:

from elevenlabs.types import DubbingMetadataResponse

I/O Contract

Field Type Required Description
dubbing_id str Yes The ID of the dubbing project
name str Yes The name of the dubbing project
status str Yes The state this dub is in
source_language Optional[str] No Once dubbing has completed, the ISO-639-1 code of the original media's source language
target_languages List[str] Yes The ISO-639-1 code of the languages this media has been dubbed into
editable Optional[bool] No Whether this dubbing project is editable in Dubbing Studio
created_at datetime Yes Timestamp this dub was created
media_metadata Optional[DubbingMediaMetadata] No Metadata such as the length in seconds and content type of the dubbed content
error Optional[str] No Error message indicating, if this dub has failed, what happened

Usage Examples

from elevenlabs.types import DubbingMetadataResponse
from datetime import datetime

# Working with a dubbing metadata response from the API
dubbing = DubbingMetadataResponse(
    dubbing_id="dub_abc123",
    name="Product Demo - Spanish",
    status="completed",
    source_language="en",
    target_languages=["es", "fr", "de"],
    created_at=datetime(2024, 1, 15, 10, 30, 0),
    editable=True,
)

# Check dubbing status
print(f"Dubbing: {dubbing.name}")
print(f"Status: {dubbing.status}")
print(f"Source language: {dubbing.source_language}")
print(f"Target languages: {', '.join(dubbing.target_languages)}")

# Check for errors
if dubbing.error:
    print(f"Error: {dubbing.error}")

# Access media metadata
if dubbing.media_metadata:
    print(f"Media metadata: {dubbing.media_metadata}")

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment