Skip to main content

Observability framework for Pipecat voice and multimodal conversational AI

Project description

Voiceground

Observability framework for Pipecat voice and multimodal conversational AI.

Features

  • VoicegroundObserver: Track conversation events following Pipecat's Observer pattern
  • HTMLReporter: Generate interactive HTML reports with timeline visualization

Installation

pip install voiceground

Or with UV:

uv add voiceground

Quick Start

import uuid
from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.task import PipelineTask
from voiceground import VoicegroundObserver, HTMLReporter

# Create observer with HTML reporter
conversation_id = str(uuid.uuid4())
reporter = HTMLReporter(output_dir="./reports")
observer = VoicegroundObserver(
    reporters=[reporter],
    conversation_id=conversation_id
)

# Create pipeline task with observer
task = PipelineTask(
    pipeline=Pipeline([...]),
    observers=[observer]
)

# Run your pipeline

Tested With

Voiceground has been tested with the following Pipecat providers:

LLM Providers

  • OpenAI (GPT)

STT Providers

  • ElevenLabs

TTS Providers

  • ElevenLabs

Event Categories

Voiceground tracks the following event categories:

Category Types Description
user_speak start, end User speech events
bot_speak start, end Bot speech events
stt start, end Speech-to-text processing (includes transcription text)
llm start, first_byte, end LLM response generation (includes generated text)
tts start, first_byte, end Text-to-speech synthesis
tool_call start, end LLM function/tool calling
system start, end System events (e.g., context aggregation)

Report Features

The generated HTML reports include:

  • Timeline Visualization: Interactive timeline showing all events and their relationships
  • Events Table: Detailed view of all tracked events with timestamps, sources, and data
  • Turns Table: Conversation turns with performance metrics:
    • Response time
    • LLM Time to First Byte (TTFB)
    • TTS latency
    • STT processing time
  • Metrics Summary: Average metrics across the conversation
  • Event Highlighting: Hover over events or turns to see related events highlighted

Examples

See the examples/ directory for complete working examples:

  • basic_pipeline.py: Basic voice conversation with STT, LLM, and TTS
  • tool_calling_pipeline.py: Example with LLM function calling

To run an example:

# Install example dependencies
uv sync --all-extras

# Set required environment variables
export OPENAI_API_KEY=your_key
export ELEVENLABS_API_KEY=your_key
export VOICE_ID=your_voice_id

# Run the example
python examples/basic_pipeline.py

Note: On macOS, you'll need to install portaudio for audio support:

brew install portaudio

Development

# Clone the repository
git clone https://github.com/poseneror/voiceground.git
cd voiceground

# Install all dependencies (including dev and examples)
uv sync --all-extras

# Run tests
uv run pytest

# Run linting
uv run ruff check .

# Run type checking
uv run mypy src

# Build the client
python scripts/develop.py build

# Run example (requires portaudio on macOS: brew install portaudio)
python scripts/develop.py example

License

BSD-2-Clause License - see LICENSE for details.

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

voiceground-0.1.1a2.dev0.tar.gz (414.5 kB view details)

Uploaded Source

Built Distribution

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

voiceground-0.1.1a2.dev0-py3-none-any.whl (108.8 kB view details)

Uploaded Python 3

File details

Details for the file voiceground-0.1.1a2.dev0.tar.gz.

File metadata

  • Download URL: voiceground-0.1.1a2.dev0.tar.gz
  • Upload date:
  • Size: 414.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for voiceground-0.1.1a2.dev0.tar.gz
Algorithm Hash digest
SHA256 4779a08a05ee453795d624ca1f5db75cf618f0e789a0c5b8b6670b0f1323357b
MD5 3031e766f3dd61b990a58649beadbca6
BLAKE2b-256 128e108a6f5768e19f9c2162dbc3ef93e2288b6b828131f41cb50593be368c20

See more details on using hashes here.

File details

Details for the file voiceground-0.1.1a2.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for voiceground-0.1.1a2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 f41ff556617ae80d21f22d52ebcff8ef5e05dd4d1b243d56521a884e6cda0816
MD5 438169c7fb4b576a5e37d51ff0170c60
BLAKE2b-256 ce192689ecedc6968100ebf4bda9d6bf3a58d8dc37da9a4b63d80dd172d05dd8

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