Skip to content

Conversation

@42nick
Copy link

@42nick 42nick commented Dec 17, 2025

Fixes #795

Fix: Implement Stop-Audio Functionality in BiDi Demo

This pull request adds support for stopping ongoing audio playback in the BiDi (bidirectional audio) demo.

What’s changed

  • Implements a Stop Audio action so users can interrupt an active voice interaction after it has started.
  • Updates the BiDi demo UI and control flow to properly handle stopping an audio stream that was previously only startable.
  • Fixes a bug where audio playback could not be halted once triggered.

Why this matters

  • Interactive audio demos should allow users to cancel voice output without waiting for playback to complete.
  • Improves developer and user experience when testing conversational and real-time audio workflows in the ADK samples.

Related context

  • Addresses the reported issue in the BiDi demo where stop-audio functionality was missing.
image

@google-cla
Copy link

google-cla bot commented Dec 17, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

[BUG]: Audio can not be stopped in bidi-demo

1 participant