assemblyai-core-workflow-b
AssemblyAI Streaming v3 Session
Overview
Operate live transcription around the current v3 message and billing lifecycle. Govern capture, credentials, finalized content, reconnects, and termination separately.
Prerequisites
- The target repository or integration path and the requested operator outcome.
- The AssemblyAI project, environment, region, data classification, and accountable owner.
- Current first-party documentation plus credentials only for a narrowly approved live check.
Current Contract
Use wss://streaming.assemblyai.com/v3/ws or the approved residency host. Handle Begin, partial and finalized Turn messages, and Termination. Match encoding and sample rate, pace audio correctly, use backend-minted tokens in untrusted clients, and terminate explicitly so abandoned connections do not continue billing.
Authentication
For live work, inject ASSEMBLYAI_API_KEY from an approved secret manager and send the raw value only in the AssemblyAI Authorization header to the configured first-party host. Never print, commit, place in a URL, or expose it to an untrusted client. Callback secrets and temporary streaming tokens are separate credentials.