Home
last modified time | relevance | path

Searched refs:vad_type (Results 1 – 2 of 2) sorted by relevance

/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dannotations.py47 def Contains(self, vad_type): argument
48 return self._value | vad_type == self._value
79 def __init__(self, vad_type, external_vads=None): argument
92 self._vad_type = self.VadType(vad_type)
127 def GetVadOutput(self, vad_type): argument
128 if vad_type == self.VadType.ENERGY_THRESHOLD:
130 elif vad_type == self.VadType.WEBRTC_COMMON_AUDIO:
132 elif vad_type == self.VadType.WEBRTC_APM:
136 'Invalid vad type: ' + vad_type)
Dannotations_unittest.py68 vad_type = self._VAD_TYPE_CLASS(vad_type_value)
69 e = annotations.AudioAnnotationsExtractor(vad_type=vad_type_value)
71 if vad_type.Contains(self._VAD_TYPE_CLASS.ENERGY_THRESHOLD):
78 if vad_type.Contains(self._VAD_TYPE_CLASS.WEBRTC_COMMON_AUDIO):
85 if vad_type.Contains(self._VAD_TYPE_CLASS.WEBRTC_APM):