Both DPMC (see dpmcCompensate) and the approximation of the crossentropy require samples of the corrupted speech.
Sampler that produces corrupted speech samples by drawing from the distributions of speech, noise, and phase factor and combining these samples. The speech sampler may return a tuple of a state and a speech vector. In this case a tuple of a state and a corrupted speech vector will be returned.
Parameters: 


The mismatch function for noiserobust speech recognition is a function relating the speech , noise , phase factor , and the noisecorrupted speech . Additionally, to transform the integral in the likelihood expression, this toolkit introduces a substitute variable . These are related by
Since these are deterministically related, each variable can be found from setting three (or two) of the other variables. The following functions convert between variable settings (not all combinations of variable settings are supported. Trying any of these will trigger an assert (False)).
Returns:  the speech vector that follows from setting three of the other variables. 

If phaseFactor is not given, it is assumed zero.
Returns:  the noise vector that follows from setting three of the other variables. 

If phaseFactor is not given, it is assumed zero.
Returns:  the observation vector that follows from setting three of the other variables. 

If phaseFactor is not given, it is assumed zero.
Returns:  the substitute vector that follows from setting two of the other variables. If the phase factor is not given, this solves a quadratic equation. The substitute sign may have to be given to constrain the result. 

If phaseFactor is not given, it is assumed zero.
The phase factor is an aggregate for the effect of phase differences between speech and noise in the logspectral domain (see Deng et al, 2004). Since logspectral representations of the speech and noise discard phase information, the phase factor is a random variable. It is approximately Gaussian distributed.
Gaussian sampler, but constrain results to .
Return the approximate variance of the phase factor for the channelth Mel filter.
This approximation is due to Leutnant et al. (2009).
Returns:  (as an iterator) a list of (frequency, weight) that indicates 

the contribution of the frequencyth spectral coefficient to the channelth Mel filter.
This toolkit uses the logspectral domain, which is related to the more standard cepstral domain by a linear transformation.
Returns:  the DCT (DCTII) matrix. 

Diagonalise, in the cepstral domain, a covariance in the logspectral domain. This is useful to imitate diagonalisation in the cepstral domain when working in the logspectral domain.
This converts the covariance to the cepstral domain with a square DCT matrix, diagonalises the covariance, and converts it back with the transpose of the DCT matrix. Note that this does not reduce the dimensionality of the cepstral covariance, because that would produce a nonfull rank covariance in the logspectral domain.
Parameters:  g – covariance in the logspectral domain. 

Returns:  covariance in the logspectral domain that is g diagonalised in the cepstral domain. 