We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa6a531 commit 88567b8Copy full SHA for 88567b8
crates/listener-core/src/actors/source/pipeline.rs
@@ -1,5 +1,6 @@
1
use std::{
2
collections::{HashMap, VecDeque},
3
+ env,
4
sync::Arc,
5
time::{Duration, Instant},
6
};
@@ -35,9 +36,13 @@ impl Pipeline {
35
36
37
pub(super) fn new(runtime: Arc<dyn ListenerRuntime>, session_id: String) -> Self {
38
Self {
- aec: AEC::new()
39
- .map_err(|e| tracing::warn!(error = ?e, "aec_init_failed"))
40
- .ok(),
+ aec: if env::var("NO_AEC").as_deref() == Ok("1") {
+ None
41
+ } else {
42
+ AEC::new()
43
+ .map_err(|e| tracing::warn!(error = ?e, "aec_init_failed"))
44
+ .ok()
45
+ },
46
joiner: Joiner::new(),
47
amplitude: AmplitudeEmitter::new(runtime, session_id),
48
audio_buffer: AudioBuffer::new(MAX_BUFFER_CHUNKS),
0 commit comments