Skip to content

Commit eaa1b87

Browse files
xitzhangXiting ZhangCopilot
authored
[VoiceLive] Relase 1.0.0b4 (#43075)
* [VoiceLive] Add async function-calling agent sample * add phrase list * fix typo * Update sdk/ai/azure-ai-voicelive/samples/async_function_calling_sample.py Co-authored-by: Copilot <[email protected]> * Update sdk/ai/azure-ai-voicelive/samples/async_function_calling_sample.py Co-authored-by: Copilot <[email protected]> * update * fix typo * update changelog * update * remove breaking change section * update changelog * fix change log * revert changelog I lost * update version and change log * enable type verification * update * [VoiceLive] Relase 1.0.0b4 --------- Co-authored-by: Xiting Zhang <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 20b4547 commit eaa1b87

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

sdk/ai/azure-ai-voicelive/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0b4 (Unreleased)
3+
## 1.0.0b4 (2025-09-19)
44

55
### Features Added
66

sdk/ai/azure-ai-voicelive/samples/basic_voice_assistant_async.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ async def _setup_session(self):
411411
voice_config = self.voice
412412

413413
# Create strongly typed turn detection configuration
414-
turn_detection_config = ServerVad(threshold=0.5, prefix_padding_ms=300, silence_duration_ms=500)
414+
turn_detection_config = ServerVad(threshold=0.5, prefix_padding_ms=300, silence_duration_ms=500, interrupt_response=True)
415415

416416
# Create strongly typed session configuration
417417
session_config = RequestSession(
@@ -465,11 +465,13 @@ async def _handle_event(self, event):
465465
# Stop current assistant audio playback (interruption handling)
466466
await ap.stop_playback()
467467

468-
# Cancel any ongoing response
469-
try:
470-
await conn.response.cancel()
471-
except Exception as e:
472-
logger.debug(f"No response to cancel: {e}")
468+
# No need to call conn.response.cancel() here —
469+
# if your VAD is configured with interrupt_response=True,
470+
# the server will automatically cancel the assistant's response.
471+
# try:
472+
# await conn.response.cancel()
473+
# except Exception as e:
474+
# logger.debug(f"No response to cancel: {e}")
473475

474476
elif event.type == ServerEventType.INPUT_AUDIO_BUFFER_SPEECH_STOPPED:
475477
logger.info("🎤 User stopped speaking")

0 commit comments

Comments
 (0)