Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py

Issue 2813883002: APM QA refactoring: render stream support, echo path simulation, new export engine (Closed)
Patch Set: removing details about the experiment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py
index 3c618b460581a06f2b5e223974970879447bd747..614c4998bc8bd48bfca778fb7ca211eb968a9bbb 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/audioproc_wrapper.py
@@ -22,7 +22,8 @@ class AudioProcWrapper(object):
"""
OUTPUT_FILENAME = 'output.wav'
- _AUDIOPROC_F_BIN_PATH = os.path.abspath('../audioproc_f')
+ _AUDIOPROC_F_BIN_PATH = os.path.abspath(os.path.join(
peah-webrtc 2017/04/21 05:28:45 What does this mean? Is the location of audioproc_
AleBzk 2017/04/24 14:30:41 True, that would be better, but I didn't want to a
peah-webrtc 2017/05/03 08:10:07 Sounds good!
+ os.pardir, 'audioproc_f'))
def __init__(self):
self._config = None
@@ -36,14 +37,17 @@ class AudioProcWrapper(object):
def output_filepath(self):
return self._output_signal_filepath
- def Run(self, config_filepath, input_filepath, output_path):
+ def Run(self, config_filepath, input_filepath, output_path,
+ reverse_input_filepath=None):
peah-webrtc 2017/04/21 05:28:45 I'd prefer if capture and render is used instead o
AleBzk 2017/04/24 14:30:41 Done, including changes in the rest of the APM QA
"""Run audioproc_f.
Args:
config_filepath: path to the configuration file specifing the arguments
for audioproc_f.
- input_filepath: path to the audio track input file.
+ input_filepath: path to the forward audio track input file (aka near-end).
output_path: path of the audio track output file.
+ reverse_input_filepath: path to the reverse audio track input file (aka
+ far-end).
"""
# Init.
self._input_signal_filepath = input_filepath
@@ -62,6 +66,8 @@ class AudioProcWrapper(object):
# Set remaining parametrs.
self._config['-i'] = self._input_signal_filepath
self._config['-o'] = self._output_signal_filepath
+ if reverse_input_filepath is not None:
peah-webrtc 2017/04/21 05:28:45 Can't this be simplified to if reverse_input_file
AleBzk 2017/04/24 14:30:41 Personally I don't like implicit casts in this cas
peah-webrtc 2017/05/03 08:10:07 Sounds good! I'm definitely not a python Guru but
+ self._config['-ri'] = reverse_input_filepath
# Build arguments list.
args = [self._AUDIOPROC_F_BIN_PATH]

Powered by Google App Engine
This is Rietveld 408576698