Examples of voice bots that answer jambonz calls with
Pipecat. jambonz handles the call and
streams its audio to the bot over a websocket using the
listen verb; Pipecat runs the
STT, LLM and TTS pipeline and streams the reply back on the same connection.
A caller dials a number (or a registered SIP device) routed to a jambonz application, and talks to the bot.
Phone Call ↔ jambonz ↔ listen verb / WebSocket ↔ Pipecat ↔ AI Services
Components:
- jambonz: SIP and PSTN call handling, and the audio stream
listenverb: forks the caller's audio to a websocket and plays back what the bot sendsJambonzFrameSerializer: converts between jambonz's websocket messages and Pipecat frames- Pipecat: audio pipeline and AI service orchestration
- AI Services: OpenAI (LLM), Deepgram (STT and TTS)
JambonzFrameSerializer ships with Pipecat from 1.16.0, in
pipecat.serializers.jambonz. It reads the call's sample rate, callSid and
traceId from the first message jambonz sends. The one setting it needs is
audio_out_sample_rate, which must match the listen verb's
bidirectionalAudio.sampleRate.
tools/fake_jambonz.py acts as jambonz against a running bot, sending the
first message, audio and a DTMF event, so the websocket path can be checked
without placing a call. See inbound/README.md.
- Detailed Setup: see
inbound/README.md - Pipecat Documentation: docs.pipecat.ai
- jambonz Documentation: docs.jambonz.org
MIT. See LICENSE.