Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.silk
Class Silk_VAD

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.silk.Silk_VAD

public class Silk_VAD
extends Object

Author:
Jing Dai, Dingxin Xu

Field Summary
(package private) static int[] tiltWeights
           
 
Constructor Summary
Silk_VAD()
           
 
Method Summary
(package private) static void SKP_Silk_VAD_GetNoiseLevels(int[] pX, SKP_Silk_VAD_state psSilk_VAD)
          Noise level estimation.
(package private) static int SKP_Silk_VAD_GetSA_Q8(SKP_Silk_VAD_state psSilk_VAD, int[] pSA_Q8, int[] pSNR_dB_Q7, int[] pQuality_Q15, int[] pTilt_Q15, short[] pIn, int pIn_offset, int framelength)
          Get the speech activity level in Q8.
(package private) static int SKP_Silk_VAD_Init(SKP_Silk_VAD_state psSilk_VAD)
          Initialization of the Silk VAD.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tiltWeights

static int[] tiltWeights
Constructor Detail

Silk_VAD

public Silk_VAD()
Method Detail

SKP_Silk_VAD_Init

static int SKP_Silk_VAD_Init(SKP_Silk_VAD_state psSilk_VAD)
Initialization of the Silk VAD.

Parameters:
psSilk_VAD - Silk VAD state.
Returns:
return 0 if success.

SKP_Silk_VAD_GetSA_Q8

static int SKP_Silk_VAD_GetSA_Q8(SKP_Silk_VAD_state psSilk_VAD,
                                 int[] pSA_Q8,
                                 int[] pSNR_dB_Q7,
                                 int[] pQuality_Q15,
                                 int[] pTilt_Q15,
                                 short[] pIn,
                                 int pIn_offset,
                                 int framelength)
Get the speech activity level in Q8.

Parameters:
psSilk_VAD - Silk VAD state.
pSA_Q8 - Speech activity level in Q8.
pSNR_dB_Q7 - SNR for current frame in Q7.
pQuality_Q15 - Smoothed SNR for each band.
pTilt_Q15 - Smoothed SNR for each band.
pIn - PCM input[framelength].
pIn_offset - offset of valid data.
framelength - Input frame length.
Returns:
Return value, 0 if success.

SKP_Silk_VAD_GetNoiseLevels

static void SKP_Silk_VAD_GetNoiseLevels(int[] pX,
                                        SKP_Silk_VAD_state psSilk_VAD)
Noise level estimation.

Parameters:
pX - subband energies.
psSilk_VAD - Silk VAD state.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.