Skip to content

Commit 6c6b7ba

Browse files
authored
Merge pull request #839 from Kaggle/add_pydub
Added pydub
2 parents 88af4f2 + da45c1a commit 6c6b7ba

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
@@ -439,6 +439,7 @@ RUN pip install flashtext && \
439439
pip install papermill && \
440440
pip install cloud-tpu-client && \
441441
pip install tensorflow-datasets && \
442+
pip install pydub && \
442443
/tmp/clean-layer.sh
443444

444445
# 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)