Skip to content

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 cut delay

Clémence Lesné2b893169c29f
diff --git a/README.md b/README.md
index dfd44d7..38e14a8 100644
--- a/README.md
+++ b/README.md
@@ -498,8 +498,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 secs. | `int` | 600 |
-| `vad_silence_timeout_ms` | The timeout for phone silence in secs. | `int` | 400 |
+| `vad_cutoff_timeout_ms` | The cutoff timeout for voice activity detection in secs. | `int` | 300 |
+| `vad_silence_timeout_ms` | The timeout for phone silence in secs. | `int` | 500 |
| `vad_threshold` | The threshold for voice activity detection. | `float` | 0.5 |
### Use an OpenAI compatible model for the LLM
diff --git a/app/helpers/features.py b/app/helpers/features.py
index 392f773..2df8fa1 100644
--- a/app/helpers/features.py
+++ b/app/helpers/features.py
@@ -59,7 +59,7 @@ async def vad_threshold() -> float:
async def vad_silence_timeout_ms() -> int:
return await _default(
- default=400,
+ default=500,
key="vad_silence_timeout_ms",
type_res=int,
)
@@ -67,7 +67,7 @@ async def vad_silence_timeout_ms() -> int:
async def vad_cutoff_timeout_ms() -> int:
return await _default(
- default=600,
+ default=300,
key="vad_cutoff_timeout_ms",
type_res=int,
)
diff --git a/cicd/bicep/app.bicep b/cicd/bicep/app.bicep
index 16e60eb..f7ffafe 100644
--- a/cicd/bicep/app.bicep
+++ b/cicd/bicep/app.bicep
@@ -907,8 +907,8 @@ resource configValues 'Microsoft.AppConfiguration/configurationStores/keyValues@
recognition_retry_max: 2
recording_enabled: false
slow_llm_for_chat: false
- vad_cutoff_timeout_ms: 600
- vad_silence_timeout_ms: 400
+ vad_cutoff_timeout_ms: 300
+ vad_silence_timeout_ms: 500
vad_threshold: '0.5'
}): {
parent: configStore