File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,16 @@ OnlineBatchedFeaturePipelineCuda::OnlineBatchedFeaturePipelineCuda(
37
37
ivector_ = NULL ;
38
38
39
39
// 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
+ }
42
50
43
51
// compute maximum chunk size for a given number of samples
44
52
// round up because there may be additional context provided
You can’t perform that action at this time.
0 commit comments