Skip to content

feat(audio): expose public recording configuration - #1133

Merged
David Elner (delner) merged 1 commit into
mainfrom
delner/sdk-851-4-public-audio-config
Nov 18, 2026
Merged

David Elner (delner) merged 1 commit into
mainfrom
delner/sdk-851-4-public-audio-config

Conversation

@delner

Copy link
Copy Markdown
Contributor

Problem

Shared audio recording options require an internal import, and the setup guidance does not clearly explain which audio dependencies are needed.

Solution

Make recording options available through a public import for LiveKit and Pipecat. For example, configure LiveKit recordings in 30-second segments:

from braintrust.audio import AudioRecordingOptions
from braintrust.integrations.livekit_agents import setup_livekit_agents

setup_livekit_agents(
    audio=AudioRecordingOptions(segment_duration_seconds=30),
)

Clarify the dependency guidance and encoding messages so users can configure recordings more easily.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:00:36.245405Z e024512 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@delner
David Elner (delner) force-pushed the delner/sdk-851-4-public-audio-config branch from 5a7817c to 77e6190 Compare November 18, 2026 04:14
@delner
David Elner (delner) force-pushed the delner/sdk-851-3-livekit-latency branch from 8f55958 to e68687c Compare November 18, 2026 04:14
@delner
David Elner (delner) force-pushed the delner/sdk-851-4-public-audio-config branch from 77e6190 to 961db7c Compare November 18, 2026 04:24
@delner
David Elner (delner) force-pushed the delner/sdk-851-3-livekit-latency branch from e68687c to 4877c0e Compare November 18, 2026 04:24
Base automatically changed from delner/sdk-851-3-livekit-latency to main November 18, 2026 04:33
> 🤖 **This text was AI-generated.**

Applications had to import recording options from a private module. The
same classes now have a supported public path without importing a codec
or voice framework:

```python
from braintrust.audio import AudioEncoding, AudioRecordingOptions
```

Existing private imports continue to work. Documentation now explains that
Opus/Ogg depends on an available PyAV/libopus backend, including PyAV
installed by LiveKit. The audio extra installs our qualified version on
Python 3.12+ and never enables capture by itself.

Default encoding retains its PCM fallback. Explicit Opus still raises
when unavailable, with an error that also identifies missing libopus.

Refs: https://linear.app/braintrustdata/issue/SDK-833
Refs: https://linear.app/braintrustdata/issue/SDK-828
@delner
David Elner (delner) force-pushed the delner/sdk-851-4-public-audio-config branch from 961db7c to fac43d3 Compare November 18, 2026 04:34
@delner
David Elner (delner) enabled auto-merge (squash) November 18, 2026 04:34
@delner
David Elner (delner) merged commit e875536 into main Nov 18, 2026
98 checks passed
@delner
David Elner (delner) deleted the delner/sdk-851-4-public-audio-config branch November 18, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants