Basic Pipecat Voice Pipeline
Learn how to trace a Pipecat voice pipeline with Noveum Trace
This guide shows a complete Pipecat voice pipeline (STT + LLM function calling + TTS) instrumented with Noveum Trace. You will see per-turn spans for STT, LLM, and TTS, plus (optionally) uploaded audio for each span.
🎯 Use Case
Drive-Thru Voice Agent: A voice-powered ordering bot that:
- Listens for customer speech (STT)
- Uses an LLM with function calling to build an order
- Speaks back responses (TTS)
🚀 Complete Working Example
📋 Prerequisites
Set your environment variables:
🔧 How It Works
noveum_trace.init()configures where traces go. In production, call this once at module level rather than inside a per-connection function.trace_obs = NoveumTraceObserver(record_audio=True)sets what the observer captures.task = PipelineTask(..., observers=[trace_obs])attaches the observer to the pipeline task.await trace_obs.attach_to_task(task)wires turn boundaries so you get per-turn STT/LLM/TTS spans.AudioBufferProcessor(num_channels=2)in the pipeline combined withrecord_audio=Trueenables full-conversation audio capture.attach_to_task()auto-detects the processor and uploads a stereo WAV as apipecat.full_conversationspan when the session ends.
📊 What You'll See in the Dashboard
pipecat.conversationtrace with onepipecat.turnper user→bot exchange- Child spans per turn:
pipecat.stt(recognized speech/text, model, confidence, latency)pipecat.llm(prompt, output, token usage, cost, function calls when emitted)pipecat.tts(spoken text, voice, audio timing)
- When
record_audio=True, per-span audio uploads addstt.audio_uuidandtts.audio_uuidattributes - A
pipecat.full_conversationspan at the trace root containing the full stereo WAV of the session (left channel = user, right channel = bot) — enabled because this example includesAudioBufferProcessor(num_channels=2)in the pipeline
🔍 Troubleshooting
If turns don’t split correctly, verify that:
await trace_obs.attach_to_task(task)runs afterPipelineTaskis creatednoveum_trace.init()is called before the pipeline starts
🚀 Next Steps
- Read the integration overview: Pipecat Integration Overview
Exclusive Early Access
Get Early Access to Noveum.ai Platform
Be the first one to get notified when we open Noveum Platform to more users. All users get access to Observability suite for free, early users get free eval jobs and premium support for the first year.