Raised low-pass threshold to better cope with high-pitched voices

This commit is contained in:
Daniel Wolf 2016-06-14 23:22:55 +02:00
parent 4346552312
commit 6c9612d2c3
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ BoundedTimeline<void> detectVoiceActivity(std::unique_ptr<AudioStream> audioStre
audioStream = removeDCOffset(std::move(audioStream)); audioStream = removeDCOffset(std::move(audioStream));
// Resample to remove noise // Resample to remove noise
constexpr int maxFrequency = 1000; constexpr int maxFrequency = 4000;
constexpr int sampleRate = 2 * maxFrequency; constexpr int sampleRate = 2 * maxFrequency;
audioStream = convertSampleRate(std::move(audioStream), sampleRate); audioStream = convertSampleRate(std::move(audioStream), sampleRate);