Skip to content

Commit da45c1a

Browse files
committed
Added pydub
added test
1 parent 86968f7 commit da45c1a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ RUN pip install flashtext && \
438438
pip install papermill && \
439439
pip install cloud-tpu-client && \
440440
pip install tensorflow-datasets && \
441+
pip install pydub && \
441442
/tmp/clean-layer.sh
442443

443444
# Tesseract and some associated utility packages

tests/test_pydub.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)