Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
ux: Fine-tune voice cutoff delay
Clémence Lesnéc3b2850aeafd
diff --git a/README.md b/README.mdindex 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.pyindex 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.bicepindex 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: 2recording_enabled: falseslow_llm_for_chat: false- vad_cutoff_timeout_ms: 150+ vad_cutoff_timeout_ms: 250vad_silence_timeout_ms: 500vad_threshold: '0.5'}): {