adk_live_voice_bridge (erlang_adk v0.7.0)
View SourceOwner-bound binary bridge between a WebSocket adapter and ADK Live.
The bridge is deliberately transport agnostic. It accepts only strict v1 binary frames, applies synchronous ingress backpressure, and forwards a small public event projection to its owner. Forwarded events retain their ADK subscriber credit until the owner returns an exact binary ACK frame; non-public events are acknowledged internally.
Summary
Types
-type options() :: #{credit => #{messages := pos_integer(), bytes := pos_integer()}, max_audio_frame_bytes => pos_integer()}.
Functions
-spec frame(pid(), binary()) -> {ok, pos_integer()} | ok | {error, term()}.
-spec start(pid(), binary(), pid(), map()) -> gen_server:start_ret().