Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/nnet3/online-nnet3-decodable-simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class DecodableNnet3SimpleOnline: public DecodableInterface {
/// Indices are one-based! This is for compatibility with OpenFst.
virtual int32 NumIndices() const { return trans_model_.NumTransitionIds(); }

int32 FrameSubsamplingFactor() const { return opts_.frame_subsampling_factor; }
private:

/// If the neural-network outputs for this frame are not cached, it computes
Expand Down
3 changes: 2 additions & 1 deletion src/online2/online-nnet3-decoding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ void SingleUtteranceNnet3Decoder::GetBestPath(bool end_of_utterance,

bool SingleUtteranceNnet3Decoder::EndpointDetected(
const OnlineEndpointConfig &config) {
int32 subsample = decodable_.FrameSubsamplingFactor();
return kaldi::EndpointDetected(config, tmodel_,
feature_pipeline_->FrameShiftInSeconds(),
feature_pipeline_->FrameShiftInSeconds() * subsample,
decoder_);
}

Expand Down