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 RecordingResponse

From Leeroopedia
Revision as of 12:26, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Elevenlabs_Elevenlabs_python_RecordingResponse.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Metadata Value
source Elevenlabs_Elevenlabs_python
domain Voices, Recordings
last_updated 2026-02-15

Overview

Description: RecordingResponse is a Pydantic model that represents the metadata for an audio recording in ElevenLabs. It contains the recording's unique identifier, MIME type, file size in bytes, upload timestamp, and the transcription of the recorded audio content. This model is used within the voice management system to track uploaded audio samples.

Usage: This model is returned by the ElevenLabs API when working with voice recordings. It provides essential metadata about an uploaded audio recording, including its transcription, which is useful for managing voice samples, verifying upload status, and reviewing the content of recorded audio.

Code Reference

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

Class signature:

class RecordingResponse(UncheckedBaseModel):
    ...

Import statement:

from elevenlabs.types import RecordingResponse

I/O Contract

Field Type Required Description
recording_id str Yes The ID of the recording
mime_type str Yes The MIME type of the recording (e.g., "audio/mpeg")
size_bytes int Yes The size of the recording in bytes
upload_date_unix int Yes The upload date of the recording (Unix timestamp)
transcription str Yes The transcription of the recording

Usage Examples

from elevenlabs.types import RecordingResponse

# Working with a recording response from the API
recording = RecordingResponse(
    recording_id="rec_abc123",
    mime_type="audio/mpeg",
    size_bytes=1048576,
    upload_date_unix=1700000000,
    transcription="Hello, this is a sample recording for voice cloning.",
)

# Access recording metadata
print(f"Recording ID: {recording.recording_id}")
print(f"Type: {recording.mime_type}")
print(f"Size: {recording.size_bytes / 1024:.1f} KB")
print(f"Transcription: {recording.transcription}")

Related Pages

Page Connections

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