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

Reson8 realtime speech-to-text over its WebSocket API.

Reads `RESON8_API_KEY`. `:model` is `"rumble-2"` or
`"resonant-1"`. Interim results are on, so the owner gets partials.
`:language_hints` become Reson8's `language` (auto-detected without
them). Besides `Octoroom.Agent.STT`'s options it takes Reson8's
`:phrases` (a list), `:bias_strength`, `:custom_model_id`,
`:filler_mode` and `:number_format`.

Reson8 reports errors after connecting only as close codes, so they come
as `{:disconnected, reason, _}`.

# `finalize`

Flushes the audio sent so far instead of waiting for Reson8's
endpointing. Answered with one `{:final, text}` when Reson8 confirms the
flush, with `""` if nothing was pending.

---

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