Workshop: Building and optimizing dictation features

Video thumbnail: Workshop: Building and optimizing dictation features
Sep 9, 202636m 6s video lengthAssemblyAI

The Signal

Assembly AI is moving toward a dedicated dictation workflow that splits transcription from linguistic cleanup. By pairing low-overhead sync transcription with a fast LLM cleanup pass, they aim to deliver intent-preserving text in under a second. The core tradeoff shifts latency overhead from connection management to optimized model inference and pre-warmed networking.

The Case

The Sync-First Approach

  • Assembly AI argues that for typical 10-to-12-second dictation bursts, traditional websockets introduce too much setup overhead, making a request-based 'sync' approach more efficient.3:52
  • The architecture utilizes client.sync.warm during the recording phase to pay the costs of DNS, TCP, and TLS handshakes before the final transcription request is even sent.7:03

Implementation Strategy

  • The current pipeline involves calling sync.transcribe with key terms or vocabulary prompts to fix entities, followed by an 'LLM Gateway' cleanup pass.4:55
  • The recommended default cleanup model is Qwen 3.5 4B fast, which prioritizes speed and cost-efficiency to ensure the final output remains within a sub-second latency budget.9:35
  • To handle disfluencies and conversational filler, the cleanup prompt must explicitly instruct the model to normalize intent while ignoring false starts or repeated words.

Future Productization

  • A forthcoming 'Dictation API' will package this multi-step process into a single call that returns both verbatim text and the final cleaned output, alongside metadata for inspection.17:48
  • This API aims to move beyond opaque 'black box' results by making the cleanup prompts inspectable and configurable for specialized domains like SOAP medical notes or structured JSON.18:52

The 1 Minute Signal Take

If you are building voice-based features, prioritize sync-based transcription over streaming when your usage pattern relies on short, discontinuous bursts. Expect to manage a composite latency budget where connection warming and efficient model-prompting are just as vital as the primary transcription model choice.

Pro Analysis

Why It Matters

Latency in voice interfaces is the primary driver of perceived product quality. By decoupling the transcription from the ...

Full analysis always available on Pro.

Time saved:34m 29s

Share this

Written by: 1 Minute Signal Editorial Team