| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 86968f7 commit da45c1a
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -438,6 +438,7 @@ RUN pip install flashtext && \ | |||
| 438 | 438 | pip install papermill && \ | |
| 439 | 439 | pip install cloud-tpu-client && \ | |
| 440 | 440 | pip install tensorflow-datasets && \ | |
| 441 | + pip install pydub && \ | ||
| 441 | 442 | /tmp/clean-layer.sh | |
| 442 | 443 | ||
| 443 | 444 | # Tesseract and some associated utility packages | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,11 @@ | |||
| 1 | + import unittest | ||
| 2 | + | ||
| 3 | + from pydub import AudioSegment | ||
| 4 | + | ||
| 5 | + | ||
| 6 | + class TestPydub(unittest.TestCase): | ||
| 7 | + def test_import(self): | ||
| 8 | + sound = AudioSegment.from_file('/input/tests/data/test.wav') | ||
| 9 | + | ||
| 10 | + self.assertEqual(1810, len(sound)) | ||
| 11 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments