/external/webrtc/webrtc/modules/audio_coding/neteq/ |
post_decode_vad_unittest.cc | 20 PostDecodeVad vad; local
|
background_noise.cc | 45 const PostDecodeVad& vad) { 46 if (vad.running() && vad.active_speech()) { 68 if ((!vad.running() && 70 (vad.running() && !vad.active_speech())) { 119 // Will only happen if post-decode VAD is disabled and |sample_energy| is
|
background_noise.h | 40 // |sync_buffer|, and on the latest decision in |vad| if it is running. 42 const PostDecodeVad& vad);
|
/external/webrtc/webrtc/modules/audio_processing/vad/ |
standalone_vad_unittest.cc | 11 #include "webrtc/modules/audio_processing/vad/standalone_vad.h" 23 rtc::scoped_ptr<StandaloneVad> vad(StandaloneVad::Create()); 26 // Valid frame length (for 32 kHz rate), but not what the VAD is expecting. 27 EXPECT_EQ(-1, vad->AddAudio(data, 320)); 32 EXPECT_EQ(0, vad->AddAudio(data, kLength10Ms)); 35 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames - 1)); 37 EXPECT_EQ(0, vad->GetActivity(p, kMaxNumFrames)); 40 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames)); 44 EXPECT_EQ(0, vad->AddAudio(data, kLength10Ms)); 45 EXPECT_EQ(0, vad->GetActivity(p, 1)) [all...] |
standalone_vad.cc | 11 #include "webrtc/modules/audio_processing/vad/standalone_vad.h" 23 StandaloneVad::StandaloneVad(VadInst* vad) 24 : vad_(vad), buffer_(), index_(0), mode_(kDefaultStandaloneVadMode) { 32 VadInst* vad = WebRtcVad_Create(); local 33 if (!vad) 36 int err = WebRtcVad_Init(vad); 37 err |= WebRtcVad_set_mode(vad, kDefaultStandaloneVadMode); 39 WebRtcVad_Free(vad); 42 return new StandaloneVad(vad);
|
voice_activity_detector_unittest.cc | 11 #include "webrtc/modules/audio_processing/vad/voice_activity_detector.h" 41 VoiceActivityDetector vad; local 43 std::vector<double> p = vad.chunkwise_voice_probabilities(); 44 std::vector<double> rms = vad.chunkwise_rms(); 49 EXPECT_FLOAT_EQ(vad.last_voice_probability(), kDefaultVoiceValue); 56 VoiceActivityDetector vad; local 75 vad.ProcessChunk(&data[0], data.size(), kSampleRateHz); 77 mean_probability += vad.last_voice_probability(); 91 VoiceActivityDetector vad; local 110 vad.ProcessChunk(&data[0], data.size(), kSampleRateHz) 123 VoiceActivityDetector vad; local 146 VoiceActivityDetector vad; local [all...] |
standalone_vad.h | 15 #include "webrtc/modules/audio_processing/vad/common.h" 16 #include "webrtc/common_audio/vad/include/webrtc_vad.h" 33 // -1: if no audio is stored or VAD returns error. 37 // Note that due to a high false-positive (VAD decision is active while the 38 // processed audio is just background noise) rate, stand-alone VAD is used as 42 // effect of the stand-alone VAD is neutral if the input is classified as 49 // Set aggressiveness of VAD, 0 is the least aggressive and 3 is the most 53 // Get the agressiveness of the current VAD. 57 explicit StandaloneVad(VadInst* vad);
|
/external/webrtc/webrtc/common_audio/vad/ |
webrtc_vad.c | 11 #include "webrtc/common_audio/vad/include/webrtc_vad.h" 17 #include "webrtc/common_audio/vad/vad_core.h" 40 // Initialize the core VAD component. 60 int vad = -1; local 78 vad = WebRtcVad_CalcVad48khz(self, audio_frame, frame_length); 80 vad = WebRtcVad_CalcVad32khz(self, audio_frame, frame_length); 82 vad = WebRtcVad_CalcVad16khz(self, audio_frame, frame_length); 84 vad = WebRtcVad_CalcVad8khz(self, audio_frame, frame_length); 87 if (vad > 0) { 88 vad = 1 [all...] |
vad_core.c | 11 #include "webrtc/common_audio/vad/vad_core.h" 14 #include "webrtc/common_audio/vad/vad_filterbank.h" 15 #include "webrtc/common_audio/vad/vad_gmm.h" 16 #include "webrtc/common_audio/vad/vad_sp.h" 58 // Maximum number of counted speech (VAD = 1) frames in a row. 117 // - self [i/o] : Pointer to VAD instance 123 // - returns : the VAD decision (0 - noise, 1 - speech). 169 // 1) Calculating the likelihood of speech and thereby a VAD decision. 229 // used for the global VAD decision. 233 // Local VAD decision 600 int vad; local 627 int vad; local 650 int vad; local [all...] |
vad_core.h | 13 * This header file includes the descriptions of the core VAD calls. 30 int vad; member in struct:VadInstT_ 58 // Initializes the core VAD component. The default aggressiveness mode is 70 * This function changes the VAD settings 73 * - inst : VAD instance 92 * Calculate probability for active speech and make VAD decision. 102 * Return value : VAD decision
|
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
RTPencode.cc | 95 int vad, 104 int* vad, 286 int useVAD, vad; local 499 printf("Error: this simulation does not support VAD/DTX/CNG\n"); 523 // fixed-rate frame codecs (with internal VAD) 675 &vad, useVAD, bitrate, numChannels); 677 if (usingStereo && stereoMode != STEREO_MODE_FRAME && vad == 1) { 694 if (vad) 710 if (vad) 723 if (vad) // regular speech dat [all...] |
/external/webrtc/webrtc/modules/audio_coding/test/ |
TestStereo.cc | 148 bool vad; local 194 // Start with setting VAD/DTX, before we know we will send stereo. 196 // VAD/DTX gets turned off. 198 EXPECT_EQ(0, acm_a_->VAD(&dtx, &vad, &vad_mode)); 200 EXPECT_TRUE(vad); 203 EXPECT_EQ(0, acm_a_->VAD(&dtx, &vad, &vad_mode)); 205 EXPECT_FALSE(vad); 337 // Test that VAD/DTX cannot be turned on while sending stereo [all...] |
APITest.cc | 491 // VAD TEST 598 _acmA->VAD(&dtxEnabled, &vadEnabled, &vadMode); 605 fprintf(stdout, "DTX %3s, VAD %3s, Mode %d", dtxEnabled ? "ON" : "OFF", 611 fprintf(stdout, "DTX %3s, VAD %3s, Mode %d => bit-rate %3.0f kbps\n", 622 fprintf(stderr, ">>> Error Enabling VAD <<<\n"); 625 fprintf(stderr, ">>> Error setting VAD-mode <<<\n"); 628 _acmB->VAD(&dtxEnabled, &vadEnabled, &vadMode); 636 fprintf(stdout, "DTX %3s, VAD %3s, Mode %d", dtxEnabled ? "ON" : "OFF", 642 fprintf(stdout, "DTX %3s, VAD %3s, Mode %d => bit-rate %3.0f kbps\n", 653 fprintf(stderr, ">>> Error Enabling VAD <<<\n") 918 bool* vad; local 1017 bool* vad; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/codecs/cng/ |
audio_encoder_cng.h | 17 #include "webrtc/common_audio/vad/include/vad.h" 28 class Vad; 39 Vad::Aggressiveness vad_mode = Vad::kVadNormal; 42 // The Vad pointer is mainly for testing. If a NULL pointer is passed, the 43 // AudioEncoderCng creates (and destroys) a Vad object internally. If an 44 // object is passed, the AudioEncoderCng assumes ownership of the Vad 46 Vad* vad = nullptr member in struct:webrtc::final::Config [all...] |
audio_encoder_cng.cc | 58 vad_(config.vad ? rtc_make_scoped_ptr(config.vad) 117 << " ms when using VAD/CNG."; 119 // Group several 10 ms blocks per VAD call. Call VAD once or twice using the 133 Vad::Activity activity = vad_->VoiceActivity( 136 if (activity == Vad::kPassive && blocks_in_second_vad_call > 0) { 145 case Vad::kPassive: { 150 case Vad::kActive: { 155 case Vad::kError: [all...] |
audio_encoder_cng_unittest.cc | 15 #include "webrtc/common_audio/vad/mock/mock_vad.h" 45 // created Vad object. 46 config_.vad = mock_vad_; 108 .WillRepeatedly(Return(active_speech ? Vad::kActive : Vad::kPassive)); 128 // the VAD. 144 // Let the VAD decision be passive, since an active decision may lead to 150 sample_rate_hz_)).WillOnce(Return(Vad::kPassive)); 155 sample_rate_hz_)).WillOnce(Return(Vad::kPassive)); 165 bool CheckMixedActivePassive(Vad::Activity first_type [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
apmtest.m | 18 % 'vad' The VAD test set. 60 tests = {'apm','apmm','aec','aecm','agc','ns','vad'}; 101 opt = ['-ec 1 -agc 2 -nc 2 -vad 3']; 105 ' -ns --ns_moderate -vad']; 117 ' -ns --ns_moderate -vad']; 198 % Check for VAD test 200 if ~isempty(findstr(opt, '-vad'))
|
/external/webrtc/ |
Android.mk | 113 include $(webrtc_path)/webrtc/common_audio/vad/Android.mk 125 include $(webrtc_path)/webrtc/modules/audio_processing/vad/Android.mk
|
/hardware/qcom/audio/msm8909/hal/audio_extn/ |
source_track.c | 58 #define AUDIO_PARAMETER_KEY_SOURCE_TRACK_VAD "SourceTrack.vad" 104 uint8_t vad[MAX_SECTORS]; member in struct:source_tracking_param 469 if ((i >=4) && (source_tracking_data.vad[i] == 0xFF)) 473 snprintf(value + strlen(value), MAX_STR_SIZE, "%d", source_tracking_data.vad[i]);
|
/external/webrtc/webrtc/modules/audio_processing/ |
Android.mk | 60 $(LOCAL_PATH)/../../common_audio/vad/include \
|
/external/webrtc/talk/media/webrtc/ |
fakewebrtcvoiceengine.h | 152 vad(false), 173 bool vad; member in struct:cricket::FakeWebRtcVoiceEngine::Channel 236 return channels_[channel]->vad; 479 // Replicating VoE behavior; VAD cannot be enabled for stereo. 482 channels_[channel]->vad = enable;
|