---
title: "Sprag on Vobiz | Phone Numbers for Sprag Voice Agents"
description: "Put a Sprag voice agent on a Vobiz number with Pipecat. Sprag hears the caller and speaks the reply, on numbers in 130+ countries."
canonical: https://www.vobiz.ai/integrations/sprag/
---
[Integrations](https://www.vobiz.ai/integrations/)Sprag

VOICE AI MODEL INTEGRATION

# Sprag agents.
Vobiz numbers.

Sprag builds speech and language models for voice agents, and it connects to Vobiz for telephony: in a Pipecat agent, Vobiz provides the phone number and streams the call's audio, while Sprag hears the caller, writes the reply and speaks it back.

[Read the integration guide](https://www.vobiz.ai/docs/integrations/sprag-pipecat)[Create a Vobiz account](https://console.vobiz.ai/auth/signup/)

130+

countries where you can provision numbers

190

countries reachable on outbound

43

fields in every call's detail record

Before you start

The agent is built in Pipecat, so it needs Python 3.11 or later and a public HTTPS address that Vobiz can reach during every call. You hold two accounts: calls are billed on Vobiz, and model usage is billed on Sprag. And the guide covers Pipecat; the same pairing also runs on LiveKit, where Vobiz connects as a SIP trunk and Sprag through its own LiveKit integration.

Why this pairing

## Why run Sprag voice agents on Vobiz

A voice agent on a phone line has four jobs: hear the caller, decide what to say, say it, and keep the line up while it does. Most builds stitch those together from a speech-to-text vendor, a language model, a text-to-speech vendor and a telephony provider, each with its own keys, latency and bill. Sprag takes the first three. Vobiz takes the fourth.

That leaves two accounts and two packages, with Pipecat between them. Each half changes without touching the other: pick a new Chorus voice on the Sprag side, or add a number in another country on the Vobiz side, and the rest of the agent stays as it is.

### Sprag owns

-   Speech-to-text: Rhythm hears the caller
-   The language model that writes the reply
-   Text-to-speech and voice choice: Chorus speaks it
-   Turn detection, if you choose Sprag's own
-   Model usage, on your Sprag account

### Vobiz owns

-   Phone numbers and instant provisioning
-   Inbound and outbound calls
-   The call's live audio stream, narrowband or wideband
-   Call detail records and quality telemetry
-   Local regulatory compliance, including India KYC
-   Call charges, on your Vobiz account

What you get

## What Vobiz adds to a Sprag agent

The phone side of the agent: the audio it hears, the numbers it answers and a record of every call.

01

### Wideband audio on a phone call

Vobiz streams calls as standard phone audio (μ-law at 8 kHz) or as wideband (L16 at 16 kHz), which gives Rhythm twice the sample rate of an ordinary phone line to work with. On the way back, pipecat-vobiz converts Chorus's 24 kHz voice to the call's format, so the agent sounds clear on either.

02

### Inbound and outbound from one agent

Point a Vobiz application's Answer URL at the agent and it answers your number. Place a call through the Vobiz API with the same Answer URL and the same agent dials out instead. One codebase, both directions.

03

### Numbers in 130+ countries, held in your account

Local, mobile and toll-free inventory across 130+ countries, with outbound reach to 190, including regulated formats where a market demands them — India's 140-series and 1600-series among them. The number sits in your Vobiz account rather than with your model provider.

04

### Same number, Pipecat or LiveKit

Vobiz connects to Pipecat over a real-time audio stream and to LiveKit over a SIP trunk. Start on one framework and move to the other, and the number and its call history stay where they are.

05

### A record of every call

Every call leaves a detail record with 43 fields, including MOS, jitter, packet loss and hangup attribution. When a caller says the agent sounded wrong, it tells you whether the line or the model was at fault.

How it works

## How to connect Sprag to Vobiz

Test it on your laptop first. The phone number comes last.

1.  01

    ### Get the agent

    Clone the starter repository and install it. Add your Sprag API key and your Vobiz Auth ID and Auth Token.

2.  02

    ### Try it without a phone

    Run the call simulator. It stands in for Vobiz, asks the agent a question and saves the spoken reply for you to play back.

3.  03

    ### Give the agent a public address

    Start the agent and expose it over HTTPS. A tunnel such as ngrok is fine while you build. Note the URL.

4.  04

    ### Point your Vobiz number at it

    In the Vobiz Console, create an application with its Answer URL set to the agent's /answer address, then attach your number to that application.

5.  05

    ### Call your number

    The agent greets you and the conversation starts. To have it call someone instead, place a call through the Vobiz API with the same Answer URL.

### Three things that will waste an afternoon

-   **Run the simulator before you ring the number.** If the simulator plays a reply and the phone call stays silent, the problem is the address or the application, not Sprag's models. Skip it and you will debug the wrong half.
-   **The Answer URL is the agent's /answer path, not the bare host.** Vobiz fetches it to learn what to do with each call, so it has to resolve publicly — and a tunnel that restarts usually comes back on a new address, which the application will not know about.
-   **Creating the application is not enough; the number has to be attached to it.** Until it is, calls to your number never reach the agent, and nothing on the agent side tells you why.

Every step, the audio formats, voice presets, Sprag's turn detection and the full agent code are in the Vobiz docs and the starter repository.

[Read the integration guide](https://www.vobiz.ai/docs/integrations/sprag-pipecat)

Get started

## Hear it answer before you buy the number

Clone the agent, run the simulator, then point a Vobiz number at it.
The first real call is five steps from a fresh clone.

[Read the integration guide](https://www.vobiz.ai/docs/integrations/sprag-pipecat)[Create a Vobiz account](https://console.vobiz.ai/auth/signup/)

[Get the starter repository](https://github.com/vobiz-ai/Vobiz-Sprag-Pipecat)

FAQ

## Sprag and Vobiz — common questions

CRM and helpdesk integrations: [Salesforce](https://www.vobiz.ai/integrations/salesforce/) · [ServiceNow](https://www.vobiz.ai/integrations/servicenow/) · [ClickUp](https://www.vobiz.ai/integrations/clickup/) · [Pipedrive](https://www.vobiz.ai/integrations/pipedrive/) · [Expedify](https://www.vobiz.ai/integrations/expedify/) · [HubSpot](https://www.vobiz.ai/integrations/hubspot/) · [Freshdesk](https://www.vobiz.ai/integrations/freshdesk/) · [Zendesk](https://www.vobiz.ai/integrations/zendesk/)

Voice AI platforms on Vobiz: [Bolna](https://www.vobiz.ai/integrations/bolna/) · [Vapi](https://www.vobiz.ai/integrations/vapi-dashboard/) · [Retell AI](https://www.vobiz.ai/integrations/retellai-dashboard/) · [LiveKit](https://www.vobiz.ai/integrations/livekit/) · [ElevenLabs](https://www.vobiz.ai/integrations/elevenlabs-dashboard/) · [See all integrations](https://www.vobiz.ai/integrations/)

Connecting by API instead of the dashboard: [Retell AI API guide](https://www.vobiz.ai/docs/integrations/retellai-api) · [ElevenLabs API guide](https://www.vobiz.ai/docs/integrations/elevenlabs-api)

Sprag builds speech and language models and inference infrastructure for voice agents. Learn more at sprag.ai. Sprag and Vobiz are partners; this integration uses Sprag's pipecat-sprag package and Vobiz's pipecat-vobiz package in Pipecat. Pipecat and LiveKit are trademarks of their respective owners.
