A Python client for Connexity API.
Project description
Usage
from pipecat.audio.vad.vad_analyzer import VADParams
from connexity.metrics.pipecat import ConnexityTwilioObserver
from twilio.rest import Client
# build your VADParams once
vad_params = VADParams(
confidence=0.5,
min_volume=0.6,
start_secs=0.2,
stop_secs=0.8,
)
# assume you’ve already created/started your TwilioClient somewhere:
# twilio_client = Client(account_sid, auth_token)
# twilio_client.calls(call_sid).recordings.create()
# and you want to inject that manager into the observer
observer = ConnexityTwilioObserver()
await observer.initialize(
agent_id="YOUR_AGENT_ID",
api_key="YOUR_CONNEXITY_API_KEY",
sid=call_sid,
phone_call_provider="twilio",
user_phone_number=from_number,
agent_phone_number=to_number,
# <<< now using DI of client instead of creds >>>
twilio_client=twilio_client.client,
voice_provider="11labs",
llm_provider="openai",
llm_model="gpt-4o",
call_type="inbound",
transcriber="deepgram",
vad_params=vad_params,
env="development", # or "production"
vad_analyzer="silero", # your chosen VAD engine name
)
pipeline.register_observer(observer)
CHANGELOG
v0.0.8.8 — 2025-06-24
Breaking Changes
- Twilio DI instead of credentials
Removed twilio_account_sid and twilio_auth_token parameters from initialize(...).
Now you must pass a twilio_client: TwilioClient instance via the twilio_client argument. Action required: construct and start your own TwilioClient, then inject it into the observer.
v0.0.8.7 — 2025-06-20
Breaking Changes
- Removed built-in Twilio call recording
Recording is no longer performed by this package.
Action required: start your Twilio recording on the app side as soon as the WebSocket connection is established.
v0.0.8.6 — 2025-06-13
New Features
VAD compensation
- Configurable via VADParams
- Pass vad_params into initialize(...)
- Environment & analyzer tags
- Added env and vad_analyzer metadata fields to register_call
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 connexity-0.0.8.8.tar.gz.
File metadata
- Download URL: connexity-0.0.8.8.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aeb8ecfcd32c79a028f76fbe1fb4603e59fba1478856457a8717a910afb5a2e0
|
|
| MD5 |
ed872f1609bde4a4cee09f881e660625
|
|
| BLAKE2b-256 |
f4c51b973c583ef01fb876d2b5d3c466cf47393efa0793930c45a12956299bc8
|
File details
Details for the file connexity-0.0.8.8-py3-none-any.whl.
File metadata
- Download URL: connexity-0.0.8.8-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96ed0b0ac5a6ed8d4a4f7d3f0b8c19b3f8c40e5f50de1a229e02d96dc31f4d66
|
|
| MD5 |
536417f06c920d34cf5d6c36f2520065
|
|
| BLAKE2b-256 |
ce87907940abed90421dfebc96ee1affd08c355063062956dfdc06a64ff5ed98
|