Skip to content

Commit

Permalink
Add test for 16000 Hz opus file
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 17, 2024
1 parent 61a0a12 commit 2b90d7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tests/assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
Binary file added tests/assets/gs-16b-1c-16000hz.opus
Binary file not shown.
Binary file removed tests/assets/gs-16b-1c-44100hz.opus
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_audiofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2b90d7c

Please sign in to comment.