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

doc: Fix features documentation

Clémence Lesnébeb893ed2362
diff --git a/README.md b/README.md
index a3da688..4f837f0 100644
--- a/README.md
+++ b/README.md
@@ -479,8 +479,8 @@ Conversation options are represented as features. They can be configured from Ap
| `recognition_retry_max` | TThe maximum number of retries for voice recognition. Minimum of 1. | `int` | 3 |
| `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` | 250 |
-| `vad_silence_timeout_ms` | Amount of silence in ms to trigger voice activity detection. | `int` | 500 |
+| `vad_cutoff_timeout_ms` | The cutoff timeout for voice activity detection in milliseconds. | `int` | 250 |
+| `vad_silence_timeout_ms` | Silence to trigger voice activity detection in milliseconds. | `int` | 500 |
| `vad_threshold` | The threshold for voice activity detection. Between 0.1 and 1. | `float` | 0.5 |
### Use an OpenAI compatible model for the LLM
diff --git a/app/helpers/features.py b/app/helpers/features.py
index cfe79f4..1aeb409 100644
--- a/app/helpers/features.py
+++ b/app/helpers/features.py
@@ -80,7 +80,7 @@ async def vad_threshold(scheduler: Scheduler) -> float:
async def vad_silence_timeout_ms(scheduler: Scheduler) -> int:
"""
- Amount of silence in ms to trigger voice activity detection.
+ Silence to trigger voice activity detection in milliseconds.
"""
return await _default(
default=500,
@@ -92,7 +92,7 @@ async def vad_silence_timeout_ms(scheduler: Scheduler) -> int:
async def vad_cutoff_timeout_ms(scheduler: Scheduler) -> int:
"""
- The cutoff timeout for voice activity detection in secs.
+ The cutoff timeout for voice activity detection in milliseconds.
"""
return await _default(
default=250,