Skip to content

agent simulation: audio impairments on the create request - #1723

Merged
u9g merged 2 commits into
mainfrom
jason/simulate-audio-impairments
Aug 24, 2026
Merged

agent simulation: audio impairments on the create request#1723
u9g merged 2 commits into
mainfrom
jason/simulate-audio-impairments

Conversation

@u9g

@u9g u9g commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Adds background_noise, low_quality_microphone, and packet_loss to SimulationRun.Create.Request, so an audio simulation run can impair the simulated user's audio.

The CLI side is livekit/livekit-cli#943, which turns the --audio flag into an audio subcommand that sends them:

lk agent simulate audio \
  --scenarios scenarios.yaml \
  --background-noise \
  --low-quality-microphone \
  --packet-loss

Nothing consumes the fields yet: agent-service reads only req.GetMode() today, and the simulator will likely need them carried on SimulationDispatch as well.

Overlap worth flagging: the unmerged agent-simulation/scenario-environment-backchannel branch proposes a richer ScenarioGroup.Environment for the same problem space (background_noise as a string, plus audio_events, audio_degradations, backchannel). If that shape is where this is headed, I'm happy to fold these three booleans into it instead.

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b9d3158

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Patch
@livekit/protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@u9g
u9g force-pushed the jason/simulate-audio-impairments branch from f901923 to b9d3158 Compare August 24, 2026 15:11
@u9g
u9g merged commit 2122e1d into main Aug 24, 2026
8 checks passed
@u9g
u9g deleted the jason/simulate-audio-impairments branch August 24, 2026 15:14
@github-actions github-actions Bot mentioned this pull request Aug 24, 2026
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