RingQ AI

AI Provider Integration Diagram and AI Provider Requirements

AI Provider Integration Diagram

  1. A DID number is assigned a RINGQ extension, directing calls to the RINGQ server.

  2. When a call comes in, RINGQ answers and plays an intro message (WAV format).

  3. Concurrently, RINGQ establishes a WebSocket connection to the external AI provider URL.

  4. RINGQ sends the audio stream (linear 16-bit PCM, 16 kHz sampling rate) to the AI provider.

  5. The AI provider processes the audio and responds via the WebSocket connection with the URL of the AUDIO file in .wav format.

  6. RINGQ receives the response, then retrieves the AUDIO file (.wav) format and plays it back to the caller.

 

AI Provider Requirements

We are sending as linear 16-bit Pulse-Code Modulation (PCM), which is an uncompressed audio data format (often .raw or .pcm) with audio that is sampled at 16 kHz. Please provide the following: 

  • Websocket URL to act as the receiver of AUDIO stream from RINGQ server

  • Please provide the wss URL along with the port, where RINGQ will be connecting

  • URL of AUDIO file (.wav) for greetings introduction, which will be played on the start of th call

  • Please format the response as JSON with the action "response" and the audio URL as indicated below:

  {"action": "response", "audioUrl": "https://exampleURL.com/exampleFile.wav"}

 

  •  URL of AUDIO file (.wav) for AI response, which will be played during the call

  • For ending the call, please send action "end call" and the URL of the audio file trigger end call after playing the URL

  {"action": "endCall", "audioUrl": "https://exampleURL.com/exampleFile.wav"}