Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Optimize response delay a bit
Clémence Lesné34c1703f53e0
diff --git a/README.md b/README.mdindex a7e85dd..e321f13 100644--- a/README.md+++ b/README.md@@ -637,8 +637,8 @@ 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 seconds. | `int` | 500 |-| `vad_silence_timeout_ms` | The timeout for phone silence in seconds. | `int` | 500 |+| `vad_cutoff_timeout_ms` | The cutoff timeout for voice activity detection in seconds. | `int` | 400 |+| `vad_silence_timeout_ms` | The timeout for phone silence in seconds. | `int` | 400 || `vad_threshold` | The threshold for voice activity detection. | `float` | 0.5 |### Use an OpenAI compatible model for the LLMdiff --git a/app/helpers/features.py b/app/helpers/features.pyindex 2d7757c..7f6ceaa 100644--- a/app/helpers/features.py+++ b/app/helpers/features.py@@ -29,11 +29,11 @@ async def callback_timeout_hour() -> int:async def vad_silence_timeout_ms() -> int:- return await _get(key="vad_silence_timeout_ms", type_res=int) or 500+ return await _get(key="vad_silence_timeout_ms", type_res=int) or 400async def vad_cutoff_timeout_ms() -> int:- return await _get(key="vad_cutoff_timeout_ms", type_res=int) or 500+ return await _get(key="vad_cutoff_timeout_ms", type_res=int) or 400async def vad_threshold() -> float:diff --git a/cicd/bicep/app.bicep b/cicd/bicep/app.bicepindex f1e68e6..f165425 100644--- a/cicd/bicep/app.bicep+++ b/cicd/bicep/app.bicep@@ -905,8 +905,8 @@ resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@recognition_retry_max: 2recording_enabled: falseslow_llm_for_chat: false- vad_cutoff_timeout_ms: 500- vad_silence_timeout_ms: 500+ vad_cutoff_timeout_ms: 400+ vad_silence_timeout_ms: 400vad_threshold: '0.5'}): {parent: configStore