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).
Summary
Functions
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.