fierce-zoo-69908
12/12/2025, 1:51 PMBackgroundAudioPlayer very simple code inside the tool call starts playing background audio, but never stops.
In logs Hold music stopped is printed , but music keeps playing.
try:
# Play hold music if background audio player is available
if self._background_audio_player:
play_handle = self._background_audio_player.play(
AudioConfig(BuiltinAudioClip.HOLD_MUSIC, volume=0.5),
loop=True
)
logger.info("Hold music started")
# Wait for the specified duration
await asyncio.sleep(timeInSeconds)
finally:
# Stop the hold music when done if it was started
if play_handle is not None:
play_handle.stop()
logger.info("Hold music stopped")refined-appointment-81829
12/12/2025, 3:03 PMrefined-appointment-81829
12/12/2025, 3:04 PMfierce-zoo-69908
12/12/2025, 3:06 PM