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

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

Issue 2715233003: APM Quality Generator, noise generator and evaluation score workers factory + echo noise generator (Closed)
Patch Set: rebase + style fix Created 3 years, 9 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 ba46c579d01f8f9254e4699fc04899ff735315b9..843a84f14a5472e7f759c6d89fbae6e9640b0120 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
@@ -6,6 +6,9 @@
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
+"""Class implementing a wrapper for audioproc_f.
+"""
+
import cProfile
import logging
import os
@@ -13,7 +16,10 @@ import subprocess
from .data_access import AudioProcConfigFile
+
class AudioProcWrapper(object):
+ """Wrapper for audioproc_f.
+ """
OUTPUT_FILENAME = 'output.wav'
_AUDIOPROC_F_BIN_PATH = os.path.abspath('audioproc_f')
@@ -31,6 +37,14 @@ class AudioProcWrapper(object):
return self._output_signal_filepath
def run(self, config_filepath, input_filepath, output_path):
+ """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.
+ output_path: path of the audio track output file.
+ """
# Init.
self._input_signal_filepath = input_filepath
self._output_signal_filepath = os.path.join(

Powered by Google App Engine
This is Rietveld 408576698