OpenLoopPitchSearchDTXVAD2_GSMAMR

DEPRECATED. Extracts an OLP lag estimate (VAD 2 scheme is enabled).

Syntax

IppStatus ippsOpenLoopPitchSearchDTXVAD2_GSMAMR_16s32s(const Ipp16s* pSrcWgtLpc1, const Ipp16s* pSrcWgtLpc2, const Ipp16s* pSrcSpch, Ipp16s* pValResultPrevMidPitchLag, Ipp16s* pValResultVvalue, Ipp16s* pSrcDstPrevPitchLag, Ipp16s* pSrcDstPrevWgtSpch, Ipp32s* pResultMaxCorr, Ipp32s* pResultWgtEnergy, Ipp16s* pDstOpenLoopLag, Ipp16s* pDstOpenLoopGain, IppSpchBitRate mode);

Include Files

ippsc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

pSrcWgtLpc1

Pointer to the vector with 44 elements of weighted LP coefficients, represented using Q3.12 format. These LP coefficients comprise the numerator of the perceptual weighting filter.

pSrcWgtLpc2

Pointer to the vector with 44 elements of weighted LP coefficients, represented using Q3.12 format. These LP coefficients comprise the denominator of the perceptual weighting filter.

pSrcSpch

Pointer to the input speech vector with 170 elements, represented using Q15.0 format.

pValResultPrevMidPitchLag

Pointer to a vector of median filtered pitch lags from the five previous voiced speech half-frames, represented using Q15.0 format. On output, points to the updated vector of median filtered pitch lags from the five previous voiced speech half-frames, represented using Q15.0 format. This argument is valid only for 10.2 kbps frames.

pValResultVvalue

Pointer to the adaptive parameter v, represented using Q0.15 format. On output, points to the updated adaptive parameter v, represented using Q0.15 format. This argument is valid only for 10.2 kbps frames.

pSrcDstPrevPitchLag

Pointer to a five-element vector of pitch lags associated with the five most recent voiced speech half-frames. On output, points to the updated five-element vector of pitch lags associated with the five most recent voiced speech half-frames. This argument is valid only for 10.2 kbps frames.

pSrcDstPrevWgtSpch

Pointer to a vector with 143 elements containing the perceptually weighted speech associated with the previous frame, represented using Q15.0 format. On output, points to the updated vector with 143 elements containing the perceptually weighted speech associated with the previous frame, represented using Q15.0 format.

pResultMaxCorr

Pointer to the correlation maximum.

pResultWgtEnergy

Pointer to the pitch delayed energy of the weighted speech signal, as described above. The output may be scaled, and the Q representation is not given.

pDstOpenLoopLag

Pointer to a vector of OLP lags with two elements. For 5.15 and 4.75 kbps frames, only the first vector element contains a valid lag value, since only one lag is estimated. For all other bit rates, both vector elements contain valid pitch lag values.

pDstOpenLoopGain

Pointer to a vector with two elements containing optimal OLP gains, represented using Q15.0 format. This argument is valid only for 10.2 kbps frames.

mode

Bit rate specifier. Values between IPP_SPCHBR_4750 and IPP_SPCHBR_12200 are valid.

Description

This function extracts an OLP lag estimate from the weighted input speech when the VAD 2 scheme is enabled, using a version of the pitch search algorithm that is modified in the following way:

After finding the best OLP, extract from the weighted speech the maximum correlation MaxCorr and the delayed energy DelayEnergy. For both 4.75 and 5.15 kbps frames, the computation is carried for 160 samples. For all other bit rates, the computation is carried for only 80 samples using the relations





The MaxCorr and DelayEnergy values corresponding to the two half-frame OLP lag estimates are combined to obtain whole-frame estimates of MaxCorr and DelayEnergy (except during 4.75 and 5.15 kbps frames, when the OLP search is performed only once per frame).

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

ippStsRangeErr

Indicates an error when mode is not a valid element of the enumerated type IppSpchBitRate.
For more complete information about compiler optimizations, see our Optimization Notice.