diff --git a/tests/assets/README.md b/tests/assets/README.md index dd40765..8ee4ca5 100644 --- a/tests/assets/README.md +++ b/tests/assets/README.md @@ -15,6 +15,12 @@ Kevin MacLeod (incompetech.com), licensed under Creative Commons: [CC-BY-3.0](http://creativecommons.org/licenses/by/3.0/). +We converted the file `gs-16b-1c-44100hz.opus` +to `gs-16b-1c-16000hz.opus` using +```bash +ffmpeg -y -i gs-16b-1c-44100hz.opus -ac 1 -ar 16000 gs-16b-1c-16000hz-fixed.opus +``` + ## Video test files The folder contains the video file `video.mp4`, diff --git a/tests/assets/gs-16b-1c-16000hz.opus b/tests/assets/gs-16b-1c-16000hz.opus new file mode 100644 index 0000000..2016986 Binary files /dev/null and b/tests/assets/gs-16b-1c-16000hz.opus differ diff --git a/tests/assets/gs-16b-1c-44100hz.opus b/tests/assets/gs-16b-1c-44100hz.opus deleted file mode 100644 index 40a1e11..0000000 Binary files a/tests/assets/gs-16b-1c-44100hz.opus and /dev/null differ diff --git a/tests/test_audiofile.py b/tests/test_audiofile.py index 383f274..50f59e0 100644 --- a/tests/test_audiofile.py +++ b/tests/test_audiofile.py @@ -512,7 +512,7 @@ def test_file_type(tmpdir, file_type, magnitude, sampling_rate, channels): @pytest.mark.parametrize( "file, header_duration, audio, video", # header duration as given by mediainfo [ - ("gs-16b-1c-44100hz.opus", 15.839, True, False), + ("gs-16b-1c-16000hz.opus", 15.839, True, False), ("gs-16b-1c-8000hz.amr", 15.840000, True, False), ("gs-16b-1c-44100hz.m4a", 15.833, True, False), ("gs-16b-1c-44100hz.aac", None, True, False),