File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ void OnlineGenericBaseFeature<C>::MaybeCreateResampler(
8888 if (resampler_ != nullptr ) {
8989 KALDI_ASSERT (resampler_->GetInputSamplingRate () == sampling_rate);
9090 KALDI_ASSERT (resampler_->GetOutputSamplingRate () == expected_sampling_rate);
91- } else if (((sampling_rate > expected_sampling_rate) &&
92- ! computer_.GetFrameOptions ().allow_downsample ) ||
91+ } else if (((sampling_rate < expected_sampling_rate) &&
92+ computer_.GetFrameOptions ().allow_downsample ) ||
9393 ((sampling_rate > expected_sampling_rate) &&
94- ! computer_.GetFrameOptions ().allow_upsample )) {
94+ computer_.GetFrameOptions ().allow_upsample )) {
9595 resampler_.reset (new LinearResample (
9696 sampling_rate, expected_sampling_rate,
9797 std::min (sampling_rate / 2 , expected_sampling_rate / 2 ), 6 ));
You can’t perform that action at this time.
0 commit comments