Conversational AI SDK: deploy customized, interactive voice agents in minutes.
startSession
specifiy how the session is established. There are two ways to start a session:
startSession
can also be used to register optional callbacks:
connected
, connecting
and disconnected
(initial).speaking
to listening
, or the other way around.startSession
returns a Conversation
instance that can be used to control the session. The method will throw an error if the session cannot be established. This can happen if the user denies microphone access, or if the websocket connection
fails.
0
to 1
where 0
is -100 dB and 1
is -30 dB.
Uint8Array
s containg the current input/output frequency data. See AnalyserNode.getByteFrequencyData for more information.