This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from finos/matthew/FixAudioSplitter
fix audio splitter
- Loading branch information
Showing
9 changed files
with
83 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
python3 -m pytest -v --doctest-modules | ||
python3 -m pytest -vv --doctest-modules |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
small-test-file 1 gk_speaker 0.765 2.881 <o,f0,male> one two three four five | ||
small-test-file 1 gk_speaker 5.008 6.966 <o,f0,male> six seven eight nine ten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Test audio file splitter | ||
""" | ||
import os | ||
from asrtoolkit.split_audio_file import split_audio_file | ||
|
||
|
||
def test_split_audio_file(): | ||
" test audio file splitter " | ||
split_audio_file("tests/small-test-file.mp3", "tests/small-test-file.stm", | ||
"tests/split") | ||
assert set(os.listdir("tests/split")) == { | ||
'small_test_file_seg_00001.stm', 'small_test_file_seg_00000.mp3', | ||
'small_test_file_seg_00001.mp3', 'small_test_file_seg_00000.stm' | ||
} | ||
|
||
|
||
if __name__ == '__main__': | ||
import sys | ||
import pytest | ||
pytest.main(sys.argv) |