# `Octoroom.Agent.TTS.Inworld`
[🔗](https://github.com/samrat/octoroom/blob/v0.1.0/agents/lib/octoroom/agent/tts/inworld.ex#L1)

Inworld text-to-speech, over its bidirectional WebSocket.

Each call is a context on a connection. `connect/1` opens one to share
(the TTS processor opens one per agent), so replies after the first skip
the connection setup; without it, a call opens its own and closes it
after.

Reads `INWORLD_API_KEY` (the Base64 key Inworld's dashboard shows). Besides
`Octoroom.Agent.TTS`'s options it takes `:audio_encoding`, `:delivery_mode`,
`:timestamp_transport_strategy` and `:receive_timeout` (ms to wait for
each message, default 60 s).

# `connect`

Opens a connection for calls to share, closed when the calling process
exits. Returns the options with it as `:connection`. Without an API key it
opens nothing, and calls report the missing key.

---

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