Skip to main content

Speech to Text Quickstart

Hamsa offers two STT endpoints:
  • Batch API (/v1/jobs/transcribe) — Async job-based. Accepts a media URL and delivers the transcription via webhook or polling.
  • Realtime API (/v1/realtime/stt) — Synchronous. Accepts base64-encoded audio and returns the transcription directly.

Prerequisites

Batch Transcription

Submit a media URL for transcription. Results are delivered asynchronously.

Realtime Transcription (synchronous)

Send base64-encoded audio and receive the transcription directly.

Parameters

Batch API

SRT Options

When returnSrtFormat is true, you can customize the subtitle formatting:

Realtime API

Models

Streaming via WebSocket

For real-time streaming transcription, use the WebSocket API. See the WebSocket STT documentation for details.