Build your first voice AI application with the Outspeed React SDK
useConversation
hook:
onDisconnect
to handle cleanup when the conversation ends:
onDisconnect
for cleanup logic, not onError
. The onError
callback is called for runtime errors as well, so it’s not ideal for cleanup tasks.
onError
specifically for handling errors:
micMuted
prop to useConversation
:
volume
prop to useConversation
(value between 0 and 1):