Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/shared-audio-recording.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@braintrust/audio": minor
---

feat(audio): add shared progressive audio recordings

Add an optional, framework-independent audio recorder with progressive segmentation, WAV and Ogg/Opus encoding in a worker, and ordinary attachment uploads. Bound source memory and worker admission; publish ready recordings and playback selections only after upload succeeds. Preserve uploaded audio when later capture or trace publication fails.
9 changes: 9 additions & 0 deletions .changeset/solid-donuts-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"braintrust": minor
---

feat(livekit): add automatic voice traces and optional recordings

Add automatic LiveKit Agents tracing through the standard loader and logger, with turn, transcript, model, synthesis, and tool spans for cascade, realtime, duplex, and half-cascade sessions. Build realtime turns and model content from LiveKit’s common events and streams, including delayed caller transcripts. Preserve native usage even when metrics arrive before inference setup, retain selected LiveKit metadata, and suppress redundant provider spans only within tracked inference work.

Support opt-in caller and agent recordings through the optional `@braintrust/audio` package, with direct playback selections on turns and speaking spans. Default recordings to Ogg; preserve text and metadata tracing when the extension is unavailable. Include `braintrust/livekit` APIs for manually managed telemetry.
15 changes: 15 additions & 0 deletions e2e/config/pr-comment-scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -920,5 +920,20 @@
"label": "v1 latest"
}
]
},
{
"scenarioDirName": "livekit-instrumentation",
"label": "LiveKit voice instrumentation (streaming cascade, realtime, duplex, half-cascade, reconnect, interruption recovery; automatic and manual)",
"metadataScenario": "livekit-instrumentation",
"variants": [
{
"variantKey": "livekit-v1",
"label": "v1.9 pinned"
},
{
"variantKey": "livekit-v1-latest",
"label": "v1.9 latest"
}
]
}
]
3 changes: 2 additions & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"tsx": "^4.21.0",
"typescript": "5.4.4",
"vitest": "4.1.11",
"zod": "4.3.6"
"zod": "4.3.6",
"@braintrust/audio": "workspace:^"
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading