From c3b2850aeafd404d2a1cca4fb5cdee5a35b94dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Thu, 12 Dec 2024 13:23:54 +0100 Subject: [PATCH] ux: Fine-tune voice cutoff delay 150 was really too short, the assistant was triggered too many times. Let'w try with 250 and get feebacks. --- README.md | 2 +- app/helpers/features.py | 2 +- cicd/bicep/app.bicep | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 44941f6..a1a6be7 100644 --- a/README.md +++ b/README.md @@ -498,7 +498,7 @@ Conversation options are represented as features. They can be configured from Ap | `recognition_retry_max` | The maximum number of retries for voice recognition. | `int` | 2 | | `recording_enabled` | Whether call recording is enabled. | `bool` | false | | `slow_llm_for_chat` | Whether to use the slow LLM for chat. | `bool` | false | -| `vad_cutoff_timeout_ms` | The cutoff timeout for voice activity detection in secs. | `int` | 150 | +| `vad_cutoff_timeout_ms` | The cutoff timeout for voice activity detection in secs. | `int` | 250 | | `vad_silence_timeout_ms` | The timeout for phone silence in secs. | `int` | 500 | | `vad_threshold` | The threshold for voice activity detection. | `float` | 0.5 | diff --git a/app/helpers/features.py b/app/helpers/features.py index d9b4f8e..66497e9 100644 --- a/app/helpers/features.py +++ b/app/helpers/features.py @@ -72,7 +72,7 @@ async def vad_silence_timeout_ms(scheduler: Scheduler) -> int: async def vad_cutoff_timeout_ms(scheduler: Scheduler) -> int: return await _default( - default=150, + default=250, key="vad_cutoff_timeout_ms", scheduler=scheduler, type_res=int, diff --git a/cicd/bicep/app.bicep b/cicd/bicep/app.bicep index 6389ac3..c232a86 100644 --- a/cicd/bicep/app.bicep +++ b/cicd/bicep/app.bicep @@ -907,7 +907,7 @@ resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@ recognition_retry_max: 2 recording_enabled: false slow_llm_for_chat: false - vad_cutoff_timeout_ms: 150 + vad_cutoff_timeout_ms: 250 vad_silence_timeout_ms: 500 vad_threshold: '0.5' }): {