Get up and running using React
npm install vocode
Or, start from our Replit template.
start
opens the microphone stream and starts sending audio from the conversation to the userstop
closes the microphone and speaker streamsstatus
is an enum that contains the status of the conversation, one of idle
, connecting
, connected
, and error
analyserNode
is an object (defined by the Web Audio API here) that allows for audio visualizations based on the audio output of the conversation.env.template
and add your API keys.
client_backend
directory:
useConversation
hook with your self-hosted backend as follows:
vocode-react-demo
repository.
.env