# `Octoroom.Agent.STT.AssemblyAI`
[🔗](https://github.com/samrat/octoroom/blob/v0.1.0/agents/lib/octoroom/agent/stt/assembly_ai.ex#L1)

AssemblyAI realtime speech-to-text over its v3 WebSocket API.

Reads `ASSEMBLY_AI_API_KEY`. `:model` is AssemblyAI's `speech_model`:
`"assemblyai-stt-3-7-realtime-agent"` for an agent that
answers, which decides when a turn ends, or `"assemblyai-stt-3-7-realtime"`
for captions and transcripts, which ignores the endpointing settings
below. Both take 32 languages in one stream. The older Universal models
still work by name.
Besides `Octoroom.Agent.STT`'s options it takes `:format_turns` (default
`false`: punctuated, cased finals cost latency) and the endpointing
settings `:end_of_turn_confidence_threshold`,
`:min_end_of_turn_silence_when_confident` and `:max_turn_silence`.

# `finalize`

Ends the current turn now instead of waiting for AssemblyAI's endpointing.
Answered with `{:final, text}`, at once with `""` if nothing was pending.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
