Skip to content

Commit 95b37fe

Browse files
committed
Removing hard-coded mfcc in online batched pipeline
1 parent 88e7b85 commit 95b37fe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/cudafeat/online-batched-feature-pipeline-cuda.cc

+10-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,16 @@ OnlineBatchedFeaturePipelineCuda::OnlineBatchedFeaturePipelineCuda(
3737
ivector_ = NULL;
3838

3939
// Temporary to get frame extraction options
40-
MfccComputer computer(info_.mfcc_opts);
41-
frame_opts_ = computer.GetFrameOptions();
40+
if (info_.feature_type == "mfcc") {
41+
MfccComputer computer(info_.mfcc_opts);
42+
frame_opts_ = computer.GetFrameOptions();
43+
} else if (info_.feature_type == "fbank") {
44+
FbankComputer computer(info_.fbank_opts);
45+
frame_opts_ = computer.GetFrameOptions();
46+
} else {
47+
// Which ever base feature was requested is not currently supported
48+
KALDI_ASSERT(false);
49+
}
4250

4351
// compute maximum chunk size for a given number of samples
4452
// round up because there may be additional context provided

0 commit comments

Comments
 (0)