Skip to content

Commit

Permalink
ux: Fine-tune voice cutoff delay
Browse files Browse the repository at this point in the history
150 was really too short, the assistant was triggered too many times. Let'w try with 250 and get feebacks.
  • Loading branch information
clemlesne committed Dec 12, 2024
1 parent 2dc5263 commit c3b2850
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down
2 changes: 1 addition & 1 deletion app/helpers/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cicd/bicep/app.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}): {
Expand Down

0 comments on commit c3b2850

Please sign in to comment.