Layercode makes it simple to build web and mobile voice AI applications. Our React SDK (and vanilla JavaScript SDK) handles all the complexity required for real-time, low-latency, two-way voice agent interactions. Just add the React SDK to your React project, and use the useLayercodePipeline hook, which will:

  • Establish a WebSocket connection to Layercode
  • Capture microphone audio from the user and stream it for transcription
  • Handle audio playback and agent responses

You can pair your frontend with any of our backend examples, or use the Layercode Hosted Backend. The frontend guides include example components for the microphone, audio visualization, and connection status indicator.