Host your Pipecat agents with AwaazAI telephony stack.
Maintainer: AwaazAI
pip install pipecat-awaazai- Purchase a Phone number from AwaazAI
AwaazAIFrameSerializer convert between frames and media streams, enabling real-time communication over a websocket to host agent over AwaazAI's telephony stack over an indian phone number
from pipecat_awaazai import AwaazAIFrameSerializer
transport = FastAPIWebsocketTransport(
websocket=websocket_client,
params=FastAPIWebsocketParams(
audio_out_enabled=True,
add_wav_header=True,
vad_enabled=True,
vad_analyzer=SileroVADAnalyzer(sample_rate=8000),
vad_audio_passthrough=True,
serializer=AwaazAIFrameSerializer(stream_id),
audio_out_sample_rate=8000
),
)See example.py for a complete working example including event handlers and transport setup.
-
Install dependencies:
uv sync
-
Set up your environment
cp env.example .env
-
Run:
uv run python example.py
The bot will create a websocket that will accept connections from AwaazAI assigned phone number. Once websocket is running, call AwaazAI assigned phone number and it will provide agent over call
Tested with Pipecat v0.0.98
- Python 3.9+
BSD-2-Clause - see LICENSE
- Docs: https://docs.awaaz.de/voice-hosting/custom (refer to API docs for message formats)
- Pipecat Discord: https://discord.gg/pipecat (
#community-integrations)