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

perf: Enhance echo detection

Clémence Lesnée3f72d56e6bd
diff --git a/app/helpers/call_utils.py b/app/helpers/call_utils.py
index 499a18b..1076706 100644
--- a/app/helpers/call_utils.py
+++ b/app/helpers/call_utils.py
@@ -729,8 +729,8 @@ class EchoCancellationStream:
# Input signal
sr=self._sample_rate,
y=input_signal,
- # Performance
- n_fft=self._chunk_size,
+ # Quality
+ n_fft=128,
# Since the reference signal is already noise-reduced, we can assume it's stationary
clip_noise_stationary=False, # Noise is longer than the signal
stationary=True,