Skip to main content

Overview

The transcription feature uses the ElevenLabs Scribe API to convert audio and video files into accurate text transcripts. It supports multiple audio formats, language detection, and various configuration options for precision control.

Supported Audio Formats

The application accepts the following audio and video formats:
The system automatically detects the audio type from the file extension or MIME type.

Configuration Options

All transcription options are defined in the TranscriptOptions interface:

Key Options

Choose between two transcription models:
  • scribe_v1: First generation model
  • scribe_v2: Latest model with improved accuracy (default)

Making API Calls

The transcription is performed using the ElevenLabs JavaScript SDK. Here’s the actual implementation from the playground:
The API call is made from speech-to-text-playground.tsx:48-62. All options are passed directly to the ElevenLabs SDK.

Advanced Options

Temperature & Seed

Control the randomness and reproducibility of transcriptions:

Keyterms

Provide domain-specific terms to improve recognition accuracy:
Keyterms are parsed from comma-separated input:

Entity Detection

Detect and optionally redact sensitive information:

Audio Event Tagging

Tag non-speech audio events (laughter, applause, etc.):

Response Handling

The API returns a SpeechToTextChunkResponseModel containing:
  • Full transcript text
  • Word-level data with timestamps
  • Speaker information (if diarization enabled)
  • Character-level alignment data

Error Handling

The application includes specialized error parsing for ElevenLabs API errors:
Always handle API errors gracefully and provide meaningful feedback to users about authentication issues, file format problems, or quota limits.

Default Configuration

The playground uses these defaults:

Next Steps