Skip to main content

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

  1. Install dependencies:

    uv sync
    
  2. Set up your environment

    cp env.example .env
    
  3. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pipecat_awaazai-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipecat_awaazai-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for pipecat_awaazai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7be631df3f85e2a76dd944bfbcfeec2f7daf8b41e2b901b6dcc8e1fd1a92d74
MD5 6ac31ffe3f63f6331ed963bce6ad8d88
BLAKE2b-256 a3405b834a7aef27f80cb846ef487c49e818cfdd2ec21c6eb386fb9d3f453a41

See more details on using hashes here.

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

Hashes for pipecat_awaazai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6e129c73a42ce5d5331e353ae7351345b569ae641814e4806c765f3b520e7d5
MD5 a5c67a93d2843f0cdeff0bc95aaa38b4
BLAKE2b-256 c24b23a32caa1a0cda14af266ec3822c73dd88e82df61e71dfbfaca60b921f79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page