AwaazAI WebSocket frame serializer for Pipecat for hosting agents on telephony
Project description
Pipecat AwaazAI TTS Integration
Host your Pipecat agents with AwaazAI telephony stack.
Maintainer: AwaazAI
Installation
pip install pipecat-awaazai
Prerequisites
- Purchase a Phone number from AwaazAI
Usage with Pipecat Pipeline
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 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.
Running the Example
-
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
Compatibility
Tested with Pipecat v0.0.98
- Python 3.9+
License
BSD-2-Clause - see LICENSE
Support
- Docs: https://docs.awaaz.de/voice-hosting/custom (refer to API docs for message formats)
- Pipecat Discord: https://discord.gg/pipecat (
#community-integrations)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pipecat_awaazai-0.1.0.tar.gz.
File metadata
- Download URL: pipecat_awaazai-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7be631df3f85e2a76dd944bfbcfeec2f7daf8b41e2b901b6dcc8e1fd1a92d74
|
|
| MD5 |
6ac31ffe3f63f6331ed963bce6ad8d88
|
|
| BLAKE2b-256 |
a3405b834a7aef27f80cb846ef487c49e818cfdd2ec21c6eb386fb9d3f453a41
|
File details
Details for the file pipecat_awaazai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pipecat_awaazai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6e129c73a42ce5d5331e353ae7351345b569ae641814e4806c765f3b520e7d5
|
|
| MD5 |
a5c67a93d2843f0cdeff0bc95aaa38b4
|
|
| BLAKE2b-256 |
c24b23a32caa1a0cda14af266ec3822c73dd88e82df61e71dfbfaca60b921f79
|