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.2.dev0.tar.gz (453.8 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.2.dev0-py3-none-any.whl (140.3 kB view details)

Uploaded Python 3

File details

Details for the file voiceground-0.1.2.dev0.tar.gz.

File metadata

  • Download URL: voiceground-0.1.2.dev0.tar.gz
  • Upload date:
  • Size: 453.8 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.2.dev0.tar.gz
Algorithm Hash digest
SHA256 31861c87063875eccb5695205312ed1652af13e1a0ec7621db58398ebe3905a9
MD5 fd053090e98b851a485bf891aab81ffd
BLAKE2b-256 d8bf074062a78ef53deef642f2ce9b538c1fecea57bae36a7acd3ce905f9f9da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for voiceground-0.1.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 a433a0952d6cdd95c605442b05d6759e48d10defd350effc576a31a960d7bf68
MD5 3450e75318cdfa43e28a11b329af574d
BLAKE2b-256 0f95aed7216e0dc48d18f471d045709a7153296f4c0201f25de6b8ac952b422f

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