VCT_GetVADStatus

Syntax

#include <vct.h>
VCTVADStatus VCT_GetVADStatus( void *buffer, u32 length, u8* outScale );

Argument

buffer Audio data to be processed by VAD.
length Audio data length.
outScale A volume value of audio data for detection by VAD (0-127). NULL can be also specified.

Return Value

Returns the result VAD's decision.

Description

VCT_GetVADStatus confirms the VAD condition by giving continuous audio samples. VAD generally processes automatically in the VCT_SendAudio function.

VCT_GetVADStatus can be used to adjust the VAD level before using VoiceChat Library. In addition, VCT_GetVADStatus can operate in Transceiver Mode according to VAD.

The VAD audio input only supports 16-bit format inputs. 8-bit inputs are not supported.

outScale outputs the volume in a scale value as calculated by the VAD algorithm. The output value is available in a range of 0 - 127 as calculated by the SND_CalcDecibel function of NITRO-SDK.

VCT_GetVADStatus must not control calling VCT_SendAudio because VoiceChat Library continues to during fluctuations in each packet's arrival interval by sending the VAD condition at the time of the audio transmission. Once streaming begins, VCT_SendAudio must be called.

See Also

VCT_SetVADReleaseTime

Revision History

2006/03/08 The function name was changed to VCT_GetVADStatus from VCT_VAD.
2006/01/25 First release