Home
last modified time | relevance | path

Searched refs:vad (Results 1 – 25 of 44) 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/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.h26 int vad; member
/external/webrtc/common_audio/
DBUILD.gn35 "vad/include/vad.h",
36 "vad/vad.cc",
78 "vad/mock/mock_vad.h",
141 "vad/include/webrtc_vad.h",
142 "vad/vad_core.c",
143 "vad/vad_core.h",
144 "vad/vad_filterbank.c",
145 "vad/vad_filterbank.h",
146 "vad/vad_gmm.c",
147 "vad/vad_gmm.h",
[all …]
/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.py101 for vad in external_vads.values():
102 if not isinstance(vad, external_vad.ExternalVad):
104 'Invalid vad type: ' + str(type(vad)))
106 str(vad.name))
/external/webrtc/modules/audio_coding/neteq/
Dbackground_noise.cc49 const PostDecodeVad& vad) { in Update() argument
51 if (vad.running() && vad.active_speech()) { in Update()
71 if ((!vad.running() && in Update()
73 (vad.running() && !vad.active_speech())) { in Update()
Dpost_decode_vad_unittest.cc20 PostDecodeVad vad; in TEST() local
Dbackground_noise.h42 bool Update(const AudioMultiVector& sync_buffer, const PostDecodeVad& vad);
/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.gn96 ":vad",
111 rtc_executable("vad") {
113 sources = [ "quality_assessment/vad.cc" ]
129 "../../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.gn38 "../vad",
55 "../vad",
/external/webrtc/modules/audio_coding/codecs/cng/
Daudio_encoder_cng.h41 Vad* vad = nullptr; member
Daudio_encoder_cng.cc88 vad_(config.vad ? std::unique_ptr<Vad>(config.vad)
/external/rnnoise/src/
Drnn.h67 void compute_rnn(RNNState *rnn, float *gains, float *vad, const float *input);
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.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/google-breakpad/src/client/mac/sender/sv.lproj/
DLocalizable.strings8 "commentsMsg" = "Hjälp oss gärna att lösa det här problemet genom att beskriva vad du gjorde innan …

12