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.
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.
01
Get the agent
Clone the starter repository and install it. Add your Sprag API key and your Vobiz Auth ID and Auth Token.
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.
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.
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.
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.
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.
Yes. Sprag and Vobiz connect natively in Pipecat, and each side maintains its own package. Sprag maintains pipecat-sprag, which runs its models in the pipeline, and Vobiz maintains pipecat-vobiz, which connects the pipeline to the call. Vobiz also publishes a starter repository that brings the two together.
Rhythm for speech-to-text and Chorus for text-to-speech, with a Sprag language model writing the reply in between. Sprag also lets you bring a language model of your own; its documentation covers the options. You can change the Chorus voice from Sprag's voice presets.
Yes. On LiveKit, Vobiz connects as a SIP trunk for inbound and outbound calls, and Sprag connects through its own LiveKit integration. The Vobiz LiveKit page covers the telephony side, and Sprag's documentation covers the models.
On two accounts. Calls are billed on your Vobiz account, and model usage on your Sprag account. Start by calling your own number so the first test costs you as little as possible on both.
Yes. The starter repository includes a call simulator that plays the part of Vobiz, asks the agent a question and saves its spoken reply. You need a Vobiz number only when you are ready to take a real call.
You can provision numbers in 130+ countries and place outbound calls to 190. Where a market has its own number formats or registration rules, Vobiz issues under them — India's 140-series and 1600-series numbers, for example, alongside local, mobile and toll-free inventory elsewhere.
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.
We use cookies to run this site and, with your permission, to understand how it's used. Read our Cookie Policy.