From f42f56870c6201a876f025a423eb5540d7438e83 Mon Sep 17 00:00:00 2001 From: alexander Date: Fri, 16 Jul 2021 11:30:56 +0100 Subject: MLECO-2079 Adding the python KWS example Signed-off-by: Eanna O Cathain Change-Id: Ie1463aaeb5e3cade22df8f560ae99a8e1c4a9c17 --- .../speech_recognition/tests/test_audio_file.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 python/pyarmnn/examples/speech_recognition/tests/test_audio_file.py (limited to 'python/pyarmnn/examples/speech_recognition/tests/test_audio_file.py') diff --git a/python/pyarmnn/examples/speech_recognition/tests/test_audio_file.py b/python/pyarmnn/examples/speech_recognition/tests/test_audio_file.py deleted file mode 100644 index 281d0df587..0000000000 --- a/python/pyarmnn/examples/speech_recognition/tests/test_audio_file.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright © 2020 Arm Ltd and Contributors. All rights reserved. -# SPDX-License-Identifier: MIT - -import os - -import numpy as np - -from context import audio_capture - - -def test_audio_file(test_data_folder): - audio_file = os.path.join(test_data_folder, "myVoiceIsMyPassportVerifyMe04.wav") - capture = audio_capture.AudioCapture(audio_capture.ModelParams("")) - buffer = capture.from_audio_file(audio_file) - audio_data = next(buffer) - assert audio_data.shape == (47712,) - assert audio_data.dtype == np.float32 -- cgit v1.2.1