Home
last modified time | relevance | path

Searched refs:vad (Results 1 – 25 of 50) sorted by relevance

12

/external/webrtc/modules/audio_processing/vad/
Dstandalone_vad_unittest.cc23 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 …]
Dvoice_activity_detector_unittest.cc41 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 …]
Dstandalone_vad.cc22 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()
DBUILD.gn10 rtc_library("vad") {
61 ":vad",
Dstandalone_vad.h56 explicit StandaloneVad(VadInst* vad);
/external/webrtc/modules/audio_processing/agc2/
Dvad_wrapper_unittest.cc51 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 …]
Dvad_wrapper.cc65 std::unique_ptr<MonoVad> vad, in VoiceActivityDetectorWrapper() argument
70 vad_(std::move(vad)) { in VoiceActivityDetectorWrapper()
Dvad_wrapper.h51 std::unique_ptr<MonoVad> vad,
/external/webrtc/common_audio/
DBUILD.gn35 "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/
Dwebrtc_vad.c58 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()
Dvad_core.c499 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 …]
Dvad_core.h35 int vad; member
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dapm_vad.cc60 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()
Dvad.cc63 std::unique_ptr<Vad> vad = CreateVad(Vad::Aggressiveness::kVadNormal); in main() local
73 const auto is_speech = vad->VoiceActivity( in main()
Dannotations.py99 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/
Dbackground_noise.cc48 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()
Dpost_decode_vad_unittest.cc20 PostDecodeVad vad; in TEST() local
/external/speex/libspeexdsp/
Dtestdenoise.c33 int vad; in main() local
37 vad = speex_preprocess_run(st, in); in main()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/
DBUILD.gn97 ":vad",
112 rtc_executable("vad") {
114 sources = [ "quality_assessment/vad.cc" ]
130 "../../vad",
/external/webrtc/modules/audio_processing/test/
Dapmtest.m28 % '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/
DBUILD.gn39 "../vad",
56 "../vad",
/external/rnnoise/src/
Ddenoise.c555 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()
Drnn.h67 void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input);
Drnn.c160 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/
Daudio_encoder_cng.h41 Vad* vad = nullptr; member

12