Skip to content

Commit 7c8cf1c

Browse files
committed
adding small delay is enough
1 parent 67639f1 commit 7c8cf1c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/listener/src/fsm.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ impl Session {
9595
let mut input = hypr_audio::AudioInput::from_mic();
9696
input.stream()
9797
};
98-
let mic_sample_rate = mic_sample_stream.sample_rate();
9998
let mut mic_stream = mic_sample_stream.resample(SAMPLE_RATE).chunks(1024);
99+
tokio::time::sleep(Duration::from_millis(100)).await;
100100

101-
let speaker_sample_stream =
102-
hypr_audio::AudioInput::from_speaker(Some(mic_sample_rate)).stream();
101+
let speaker_sample_stream = hypr_audio::AudioInput::from_speaker(None).stream();
103102
let mut speaker_stream = speaker_sample_stream.resample(SAMPLE_RATE).chunks(1024);
104103

105104
let chunk_buffer_size: usize = 1024;

0 commit comments

Comments
 (0)