kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
knf::OnlineCmvnState Struct Reference

State of CMVN adaptation between utterances (not the within-utterance computation state). More...

#include <online-cmvn.h>

Public Member Functions

 OnlineCmvnState ()=default
 OnlineCmvnState (const MatrixD &global_stats)
 Construct with global stats (the required part of the state).

Public Attributes

MatrixD speaker_cmvn_stats
 Total CMVN stats for this speaker up till now, 2 x (dim+1); may be empty at the very first utterance.
MatrixD global_cmvn_stats
 Global CMVN stats, 2 x (dim+1), e.g.
MatrixD frozen_state
 If non-empty, 2 x (dim+1): the "frozen" normalization in use since OnlineCmvn::Freeze() was called (kaldi uses this to estimate fMLLR on top of a fixed CMVN).

Detailed Description

State of CMVN adaptation between utterances (not the within-utterance computation state).

Stats matrices follow kaldi's layout: 2 x (dim+1) as [ sum-stats count ; sum-squared-stats 0 ]. Pass the state of one utterance to a new OnlineCmvn to continue with the next utterance of the same speaker; the speaker stats then back off the normalization at the start of that utterance (see OnlineCmvn for the smoothing rules).

Constructor & Destructor Documentation

◆ OnlineCmvnState() [1/2]

knf::OnlineCmvnState::OnlineCmvnState ( )
default

◆ OnlineCmvnState() [2/2]

knf::OnlineCmvnState::OnlineCmvnState ( const MatrixD & global_stats)
inlineexplicit

Construct with global stats (the required part of the state).

Member Data Documentation

◆ frozen_state

MatrixD knf::OnlineCmvnState::frozen_state

If non-empty, 2 x (dim+1): the "frozen" normalization in use since OnlineCmvn::Freeze() was called (kaldi uses this to estimate fMLLR on top of a fixed CMVN).

Carries over to the next utterance.

◆ global_cmvn_stats

MatrixD knf::OnlineCmvnState::global_cmvn_stats

Global CMVN stats, 2 x (dim+1), e.g.

loaded from kaldi's global_cmvn.stats. Required by OnlineCmvn.

◆ speaker_cmvn_stats

MatrixD knf::OnlineCmvnState::speaker_cmvn_stats

Total CMVN stats for this speaker up till now, 2 x (dim+1); may be empty at the very first utterance.


The documentation for this struct was generated from the following file:
  • /home/runner/work/kaldi-native-fbank/kaldi-native-fbank/kaldi-native-fbank/csrc/online-cmvn.h