/external/webrtc/modules/audio_processing/vad/ |
D | standalone_vad_unittest.cc | 23 std::unique_ptr<StandaloneVad> vad(StandaloneVad::Create()); in TEST() local 27 EXPECT_EQ(-1, vad->AddAudio(data, 320)); in TEST() 32 EXPECT_EQ(0, vad->AddAudio(data, kLength10Ms)); in TEST() 35 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames - 1)); in TEST() 37 EXPECT_EQ(0, vad->GetActivity(p, kMaxNumFrames)); in TEST() 40 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames)); in TEST() 44 EXPECT_EQ(0, vad->AddAudio(data, kLength10Ms)); in TEST() 45 EXPECT_EQ(0, vad->GetActivity(p, 1)); in TEST() 48 EXPECT_EQ(-1, vad->set_mode(-1)); in TEST() 49 EXPECT_EQ(-1, vad->set_mode(4)); in TEST() [all …]
|
D | voice_activity_detector_unittest.cc | 41 VoiceActivityDetector vad; in TEST() local 43 std::vector<double> p = vad.chunkwise_voice_probabilities(); in TEST() 44 std::vector<double> rms = vad.chunkwise_rms(); in TEST() 49 EXPECT_FLOAT_EQ(vad.last_voice_probability(), kDefaultVoiceValue); in TEST() 56 VoiceActivityDetector vad; in TEST() local 75 vad.ProcessChunk(&data[0], data.size(), kSampleRateHz); in TEST() 77 mean_probability += vad.last_voice_probability(); in TEST() 91 VoiceActivityDetector vad; in TEST() local 110 vad.ProcessChunk(&data[0], data.size(), kSampleRateHz); in TEST() 112 mean_probability += vad.last_voice_probability(); in TEST() [all …]
|
D | standalone_vad.cc | 22 StandaloneVad::StandaloneVad(VadInst* vad) in StandaloneVad() argument 23 : vad_(vad), buffer_(), index_(0), mode_(kDefaultStandaloneVadMode) {} in StandaloneVad() 30 VadInst* vad = WebRtcVad_Create(); in Create() local 31 if (!vad) in Create() 34 int err = WebRtcVad_Init(vad); in Create() 35 err |= WebRtcVad_set_mode(vad, kDefaultStandaloneVadMode); in Create() 37 WebRtcVad_Free(vad); in Create() 40 return new StandaloneVad(vad); in Create()
|
D | BUILD.gn | 10 rtc_library("vad") { 61 ":vad",
|
D | standalone_vad.h | 56 explicit StandaloneVad(VadInst* vad);
|
/external/webrtc/modules/audio_processing/agc2/ |
D | vad_wrapper_unittest.cc | 51 auto vad = std::make_unique<MockVad>(); in TEST() local 52 EXPECT_CALL(*vad, SampleRateHz) in TEST() 55 EXPECT_CALL(*vad, Reset).Times(AnyNumber()); in TEST() 57 kNoVadPeriodicReset, std::move(vad), kSampleRate8kHz); in TEST() 68 auto vad = std::make_unique<MockVad>(); in CreateMockVadWrapper() local 69 EXPECT_CALL(*vad, SampleRateHz) in CreateMockVadWrapper() 73 EXPECT_CALL(*vad, Reset).Times(expected_vad_reset_calls); in CreateMockVadWrapper() 75 EXPECT_CALL(*vad, Analyze) in CreateMockVadWrapper() 79 vad_reset_period_ms, std::move(vad), kSampleRate8kHz); in CreateMockVadWrapper() 159 auto vad = std::make_unique<MockVad>(); in TEST_P() local [all …]
|
D | vad_wrapper.cc | 65 std::unique_ptr<MonoVad> vad, in VoiceActivityDetectorWrapper() argument 70 vad_(std::move(vad)) { in VoiceActivityDetectorWrapper()
|
D | vad_wrapper.h | 51 std::unique_ptr<MonoVad> vad,
|
/external/webrtc/common_audio/ |
D | BUILD.gn | 35 "vad/include/vad.h", 36 "vad/vad.cc", 80 "vad/mock/mock_vad.h", 143 "vad/include/webrtc_vad.h", 144 "vad/vad_core.c", 145 "vad/vad_core.h", 146 "vad/vad_filterbank.c", 147 "vad/vad_filterbank.h", 148 "vad/vad_gmm.c", 149 "vad/vad_gmm.h", [all …]
|
/external/webrtc/common_audio/vad/ |
D | webrtc_vad.c | 58 int vad = -1; in WebRtcVad_Process() local 76 vad = WebRtcVad_CalcVad48khz(self, audio_frame, frame_length); in WebRtcVad_Process() 78 vad = WebRtcVad_CalcVad32khz(self, audio_frame, frame_length); in WebRtcVad_Process() 80 vad = WebRtcVad_CalcVad16khz(self, audio_frame, frame_length); in WebRtcVad_Process() 82 vad = WebRtcVad_CalcVad8khz(self, audio_frame, frame_length); in WebRtcVad_Process() 85 if (vad > 0) { in WebRtcVad_Process() 86 vad = 1; in WebRtcVad_Process() 88 return vad; in WebRtcVad_Process()
|
D | vad_core.c | 499 self->vad = 1; // Speech active (=1). in WebRtcVad_InitCore() 609 int vad; in WebRtcVad_CalcVad48khz() local 627 vad = WebRtcVad_CalcVad8khz(inst, speech_nb, frame_length / 6); in WebRtcVad_CalcVad48khz() 629 return vad; in WebRtcVad_CalcVad48khz() 636 int vad; in WebRtcVad_CalcVad32khz() local 650 vad = WebRtcVad_CalcVad8khz(inst, speechNB, len); in WebRtcVad_CalcVad32khz() 652 return vad; in WebRtcVad_CalcVad32khz() 659 int vad; in WebRtcVad_CalcVad16khz() local 667 vad = WebRtcVad_CalcVad8khz(inst, speechNB, len); in WebRtcVad_CalcVad16khz() 669 return vad; in WebRtcVad_CalcVad16khz() [all …]
|
D | vad_core.h | 35 int vad; member
|
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/ |
D | apm_vad.cc | 60 VoiceActivityDetector vad; in main() local 70 vad.ProcessChunk(samples.data(), audio_frame_len, wav_reader.sample_rate()); in main() 72 auto probs = vad.chunkwise_voice_probabilities(); in main() 73 auto rms = vad.chunkwise_rms(); in main()
|
D | vad.cc | 63 std::unique_ptr<Vad> vad = CreateVad(Vad::Aggressiveness::kVadNormal); in main() local 73 const auto is_speech = vad->VoiceActivity( in main()
|
D | annotations.py | 99 for vad in external_vads.values(): 100 if not isinstance(vad, external_vad.ExternalVad): 102 str(type(vad))) 103 logging.info('External VAD used for annotation: ' + str(vad.name))
|
/external/webrtc/modules/audio_coding/neteq/ |
D | background_noise.cc | 48 const PostDecodeVad& vad) { in Update() argument 50 if (vad.running() && vad.active_speech()) { in Update() 70 if ((!vad.running() && in Update() 72 (vad.running() && !vad.active_speech())) { in Update()
|
D | post_decode_vad_unittest.cc | 20 PostDecodeVad vad; in TEST() local
|
/external/speex/libspeexdsp/ |
D | testdenoise.c | 33 int vad; in main() local 37 vad = speex_preprocess_run(st, in); in main()
|
/external/webrtc/modules/audio_processing/test/py_quality_assessment/ |
D | BUILD.gn | 97 ":vad", 112 rtc_executable("vad") { 114 sources = [ "quality_assessment/vad.cc" ] 130 "../../vad",
|
/external/webrtc/modules/audio_processing/test/ |
D | apmtest.m | 28 % 'vad' The VAD test set. 70 tests = {'apm','apmm','aec','aecm','agc','ns','vad'}; 111 opt = ['-ec 1 -agc 2 -nc 2 -vad 3']; 115 ' -ns --ns_moderate -vad']; 127 ' -ns --ns_moderate -vad']; 210 if ~isempty(findstr(opt, '-vad'))
|
/external/webrtc/modules/audio_processing/agc/ |
D | BUILD.gn | 39 "../vad", 56 "../vad",
|
/external/rnnoise/src/ |
D | denoise.c | 555 float vad=0; in main() local 615 if (vad_cnt >= 10) vad = 0; in main() 616 else if (vad_cnt > 0) vad = 0.5f; in main() 617 else vad = 1.f; in main() 630 if (vad==0 && noise_gain==0) g[i] = -1; in main() 637 fwrite(&vad, sizeof(float), 1, stdout); in main()
|
D | rnn.h | 67 void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input);
|
D | rnn.c | 160 void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input) { in compute_rnn() argument 167 compute_dense(rnn->model->vad_output, vad, rnn->vad_gru_state); in compute_rnn()
|
/external/webrtc/modules/audio_coding/codecs/cng/ |
D | audio_encoder_cng.h | 41 Vad* vad = nullptr; member
|