We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c9865 commit e2a67e7Copy full SHA for e2a67e7
src/feat/online-feature.cc
@@ -88,9 +88,9 @@ void OnlineGenericBaseFeature<C>::MaybeCreateResampler(
88
if (resampler_ != nullptr) {
89
KALDI_ASSERT(resampler_->GetInputSamplingRate() == sampling_rate);
90
KALDI_ASSERT(resampler_->GetOutputSamplingRate() == expected_sampling_rate);
91
- } else if (((sampling_rate < expected_sampling_rate) &&
+ } else if (((sampling_rate > expected_sampling_rate) &&
92
computer_.GetFrameOptions().allow_downsample) ||
93
- ((sampling_rate > expected_sampling_rate) &&
+ ((sampling_rate < expected_sampling_rate) &&
94
computer_.GetFrameOptions().allow_upsample)) {
95
resampler_.reset(new LinearResample(
96
sampling_rate, expected_sampling_rate,
0 commit comments