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

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

Issue 2715763003: APM Quality Assessment tool, signal processing tools (Closed)
Patch Set: rebase 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/eval_scores.py
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores.py b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores.py
index 3a1c4bf911826f644af98376b34eee435e9a704c..6787850f2321509fd3fc23e4c4876b4e614b8af5 100644
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores.py
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/eval_scores.py
@@ -10,6 +10,7 @@ import logging
import os
from .data_access import ScoreFile
+from .signal_processing import SignalProcessingUtils
class EvaluationScore(object):
@@ -53,13 +54,13 @@ class EvaluationScore(object):
def _load_reference_signal(self):
assert self._reference_signal_filepath is not None
- # TODO(alessio): load signal.
- self._reference_signal = None
+ self._reference_signal = SignalProcessingUtils.load_wav(
+ self._reference_signal_filepath)
def _load_tested_signal(self):
assert self._tested_signal_filepath is not None
- # TODO(alessio): load signal.
- self._tested_signal = None
+ self._tested_signal = SignalProcessingUtils.load_wav(
+ self._tested_signal_filepath)
def run(self, output_path):
self._output_filepath = os.path.join(output_path, 'score-{}.txt'.format(

Powered by Google App Engine
This is Rietveld 408576698