This class stores the adaptation state from the online iVector extractor, which can help you to initialize the adaptation state for the next utterance of the same speaker in a more informed way. More...
#include <online-ivector-feature.h>
Public Member Functions | |
OnlineIvectorExtractorAdaptationState (const OnlineIvectorExtractionInfo &info) | |
This constructor initializes adaptation-state with no prior speaker history. More... | |
OnlineIvectorExtractorAdaptationState (const OnlineIvectorExtractorAdaptationState &other) | |
Copy constructor. More... | |
void | LimitFrames (BaseFloat max_remembered_frames, BaseFloat posterior_scale) |
Scales down the stats if needed to ensure the number of frames in the speaker-specific CMVN stats does not exceed max_remembered_frames and the data-count in the iVector stats does not exceed max_remembered_frames * posterior_scale. More... | |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
Public Attributes | |
OnlineCmvnState | cmvn_state |
OnlineIvectorEstimationStats | ivector_stats |
Stats for online iVector estimation. More... | |
This class stores the adaptation state from the online iVector extractor, which can help you to initialize the adaptation state for the next utterance of the same speaker in a more informed way.
Definition at line 211 of file online-ivector-feature.h.
|
inline |
This constructor initializes adaptation-state with no prior speaker history.
Definition at line 223 of file online-ivector-feature.h.
References OnlineIvectorExtractionConfig::max_remembered_frames, and OnlineIvectorExtractionConfig::posterior_scale.
Copy constructor.
Definition at line 104 of file online-ivector-feature.cc.
Scales down the stats if needed to ensure the number of frames in the speaker-specific CMVN stats does not exceed max_remembered_frames and the data-count in the iVector stats does not exceed max_remembered_frames * posterior_scale.
[the posterior_scale factor is necessary because those stats have already been scaled by that factor.]
Definition at line 109 of file online-ivector-feature.cc.
References OnlineIvectorExtractorAdaptationState::cmvn_state, count, OnlineIvectorEstimationStats::Count(), OnlineCmvnState::frozen_state, OnlineIvectorExtractorAdaptationState::ivector_stats, KALDI_ASSERT, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), MatrixBase< Real >::Scale(), OnlineIvectorEstimationStats::Scale(), and OnlineCmvnState::speaker_cmvn_stats.
Referenced by OnlineIvectorFeature::GetAdaptationState().
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 138 of file online-ivector-feature.cc.
References OnlineIvectorExtractorAdaptationState::cmvn_state, kaldi::ExpectToken(), OnlineIvectorExtractorAdaptationState::ivector_stats, OnlineCmvnState::Read(), and OnlineIvectorEstimationStats::Read().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 129 of file online-ivector-feature.cc.
References OnlineIvectorExtractorAdaptationState::cmvn_state, OnlineIvectorExtractorAdaptationState::ivector_stats, OnlineCmvnState::Write(), OnlineIvectorEstimationStats::Write(), and kaldi::WriteToken().
OnlineCmvnState cmvn_state |
Definition at line 217 of file online-ivector-feature.h.
Referenced by OnlineIvectorFeature::GetAdaptationState(), OnlineIvectorExtractorAdaptationState::LimitFrames(), OnlineIvectorExtractorAdaptationState::Read(), OnlineIvectorFeature::SetAdaptationState(), and OnlineIvectorExtractorAdaptationState::Write().
OnlineIvectorEstimationStats ivector_stats |
Stats for online iVector estimation.
Definition at line 220 of file online-ivector-feature.h.
Referenced by OnlineIvectorFeature::GetAdaptationState(), OnlineIvectorExtractorAdaptationState::LimitFrames(), OnlineIvectorExtractorAdaptationState::Read(), OnlineIvectorFeature::SetAdaptationState(), and OnlineIvectorExtractorAdaptationState::Write().