# ElevenLabs Scribe v2 (Realtime) - Core.Today AI API > ElevenLabs' Scribe v2 Realtime speech recognition over a WebSocket - stream base64 audio chunks and receive partial and committed transcripts while you speak, with optional voice-activity commits and word timestamps. Billed per second of audio sent (0.142083 credits/s, silence included), sessions up to 20 minutes. - **Provider**: ElevenLabs - **Model ID**: elevenlabs/scribe-v2/realtime - **Category**: Audio & TTS - **Credits**: 43 per 5-minute block (0.142083 credits/s) - **Speed**: Fast - **Quality**: Ultra ## Features - Partial transcripts about every 250 ms while the caller is still speaking - Automatic language detection, Korean included - Manual commits or voice-activity (VAD) commits at the end of each utterance - Optional word and character timestamps on committed segments - PCM 8-48 kHz or 8 kHz mu-law input; sessions up to 20 minutes ## Use Cases - Live captioning or subtitles for a call or presentation - Voice-driven interfaces that need transcripts while the user is talking - Telephony streams (8 kHz mu-law) transcribed as they arrive ## API Endpoint Base URL: https://api.core.today/v1 Create Prediction: POST /predictions Get Status: GET /predictions/{job_id} ## Authentication Header: X-API-Key: YOUR_API_KEY ## Input Parameters ### Required - **model**: string - Model id, sent in the handshake. Handshake field names are case-sensitive and sent exactly as listed here (snake_case) - unknown fields are rejected. Options: elevenlabs/scribe-v2/realtime ### Optional - **audio_format**: string (default: pcm_16000) - Encoding of the audio in each chunk - raw 16-bit little-endian mono PCM at the given sample rate, or 8 kHz mu-law. pcm_16000 is recommended. Options: pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_44100, pcm_48000, ulaw_8000 - **language_code**: string - Language hint as an ISO 639-1 or 639-3 code (ko, en, kor ...). Omit for automatic detection. - **commit_strategy**: string - manual (upstream default) commits a segment only when a chunk carries commit true; vad commits automatically at the end of each utterance. Options: manual, vad - **vad_silence_threshold_secs**: number - Silence that ends an utterance when commit_strategy is vad, 0.3-3.0 seconds (upstream default 1.5). - **vad_threshold**: number - Voice-activity sensitivity when commit_strategy is vad, 0.1-0.9 (upstream default 0.4). - **min_speech_duration_ms**: integer - Shortest sound treated as speech, in milliseconds (upstream default 100). - **min_silence_duration_ms**: integer - Shortest gap treated as silence, in milliseconds (upstream default 100). - **include_timestamps**: boolean - Also send committed_transcript_with_timestamps (word and character times) after each committed_transcript. - **include_language_detection**: boolean - Add the detected language_code to partial and timestamped committed events. - **customerId**: string - End-customer id for reseller teams (same as the X-Customer-Id header on HTTP routes). Must come from the same source as the API key. ## Examples ### Handshake - Korean with automatic commits First text frame after connecting to wss://api.core.today/v1/realtime/asr (X-API-Key header). Then send {"message_type":"input_audio_chunk","audio_base_64":"...","commit":false,"sample_rate":16000} frames at 1x speed and finish with {"type":"endStream"}. ```json { "model": "elevenlabs/scribe-v2/realtime", "input": { "model": "elevenlabs/scribe-v2/realtime", "audio_format": "pcm_16000", "commit_strategy": "vad", "language_code": "ko" } } ``` ## Response Format ```json { "job_id": "abc123", "status": "pending | processing | completed | failed", "result": "URL or data (when completed)" } ``` ## Usage Flow 1. POST /predictions with model and input -> receive job_id 2. GET /predictions/{job_id} -> poll until status is completed or failed 3. Result contains output URL(s) ## Tips - Connect to wss://api.core.today/v1/realtime/asr with the X-API-Key header, send the handshake JSON as the first text frame, and wait for {"type":"session"} before sending audio - Audio goes in JSON text frames: message_type input_audio_chunk, audio_base_64, commit, sample_rate (must match audio_format). Binary frames are rejected. Keep each chunk at 1 second of audio or less - 0.1 to 0.25 s works well - Events arrive in ElevenLabs' format: session_started, partial_transcript (replaces the previous partial), committed_transcript (final for that segment) and, when include_timestamps is on, committed_transcript_with_timestamps - End with {"type":"endStream"}: the gateway commits any audio still pending, relays the last committed transcript, then sends {"type":"usage"} with the billed seconds and closes 1000 - Send audio at real-time speed. Sending faster than 1x (plus 5 s of slack) closes the session with pacing_violation - for recorded files use the elevenlabs/scribe-v2 prediction model, which is also cheaper - Silence is billed and keeps the session alive: 10 seconds without any audio closes it with idle_timeout, so pad pauses with silent chunks - Scribe v3 Live (elevenlabs/scribe-v3/realtime) is the newer model at the same rate - prefer it for new work ## Documentation https://elevenlabs.io/docs/overview/capabilities/speech-to-text