asr
Real-time speech-to-text transcription channel.
Handshake
WSS
wss://api.kotobatech.ai/v1/realtime
Authentication
AuthorizationBearer
HTTP Bearer authentication. Pass the Kotoba API key as a Bearer token via the Authorization header. Server-side use only.
Send
clientSendSessionUpdate
Must be sent exactly once after receiving transcription_session.created
and before sending audio. Sets the input audio format, sampling rate,
and transcription language.
OR
clientSendAudio
Sends a Base64-encoded audio chunk as a JSON frame.
OR
clientCommitAudio
Sent when ending audio transmission. The server processes remaining
audio, completes any pending nonempty turn when turn detection is
enabled, then acknowledges with input_audio_buffer.committed.
Receive
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.
OR
serverReceiveEvents
Receives session lifecycle events, transcription deltas, completed transcripts, commit notifications, and errors.