@squidcloud/client
    Preparing search index...

    Class AiVoiceClient

    AiVoiceClient puts agents on voice calls: phone calls a telephony provider relays to or OpenAI answers for a Squid agent (application API key), and browser calls a user starts from a web page.

    Index
    • Starts a voice conversation with an agent in the browser: opens the microphone, connects to the OpenAI realtime model over WebRTC and plays the agent's voice. Browser only.

      Parameters

      Returns Promise<AiWebVoiceCall>

      The running call, to listen to its turns, mute it or stop it.