diff options
author | Josep Maso <josep@iatec.biz> | 2020-09-30 10:32:16 +0200 |
---|---|---|
committer | Josep Maso <josep@iatec.biz> | 2020-09-30 10:32:16 +0200 |
commit | d8d4684c24a7c34334bb0b1d74dead69282e8c46 (patch) | |
tree | 0f145aff156fbb4ecbb27dee546176936faa4ee2 /test-cli | |
parent | 6550286c1f6ce5b1dbfc718b5566af3012ab538a (diff) | |
download | board-d8d4684c24a7c34334bb0b1d74dead69282e8c46.zip board-d8d4684c24a7c34334bb0b1d74dead69282e8c46.tar.gz board-d8d4684c24a7c34334bb0b1d74dead69282e8c46.tar.bz2 |
Modified audio test to work in IGEP0046.
Diffstat (limited to 'test-cli')
-rw-r--r-- | test-cli/test/tests/qaudio.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-cli/test/tests/qaudio.py b/test-cli/test/tests/qaudio.py index 2c86809..a219a1a 100644 --- a/test-cli/test/tests/qaudio.py +++ b/test-cli/test/tests/qaudio.py @@ -50,6 +50,11 @@ class Qaudio(unittest.TestCase): time.sleep(self.__run_delay) p1 = sh.aplay(self.__dtmf_file_play) p2.wait() + + p2 = sh.arecord("-r", self.__sampling_rate, "-d", calcRecordTime, "{}/{}".format(self.__record_path, self.__dtmf_file_record), _bg=True) + time.sleep(self.__run_delay) + p1 = sh.aplay(self.__dtmf_file_play) + p2.wait() if p1.exit_code == 0 and p2.exit_code == 0: p = sh.multimon("-t", "wav", "-a", "DTMF", "{}/{}".format(self.__record_path, self.__dtmf_file_record), "-q") if p.exit_code == 0: |