We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02ae39f commit c250d9eCopy full SHA for c250d9e
src/voicerecorder.cpp
@@ -172,7 +172,7 @@ void VoiceRecorder::handleAudioInputDeviceReadyRead()
172
173
SilenceLength = 0;
174
175
- if (!VoiceDetected && VoiceBuffer.size() > (sample_rate / 1000) * MinVoiceDuration) {
+ if (!VoiceDetected && VoiceBuffer.size() > (sample_rate / 1000) * MinVoiceDuration * (sample_size / 8)) {
176
VoiceDetected = true;
177
178
emit voiceFound();
0 commit comments