Skip to content

Commit bbf5e8d

Browse files
committed
Build and use g722 module without numpy support to save build
times.
1 parent 3859e45 commit bbf5e8d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docker/Dockerfile.voiptests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ RUN test ! -d ${TROOT}${CACHE_ROOT} || \
3232
RUN rm -r ${TROOT}
3333

3434
ENV PYTHON_CMD=python3
35+
ENV LIBG722_NO_NUMPY=1
3536
RUN ${PYTHON_CMD} -m pip install --upgrade setuptools
3637
RUN ${PYTHON_CMD} setup.py sdist
3738
RUN ${PYTHON_CMD} -m pip install dist/sippy*.gz

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ElPeriodic>=1.1
22
rtpsynth>=1.3.0
3-
g722>=1.2.1
3+
g722>=1.2.3
44
pycryptodome
55
websockets

sippy/Rtp/Codecs/G722.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class G722Codec(GenCodec):
1515

1616
def __init__(self):
1717
super().__init__()
18-
self.codec = G722(self.srate, self.default_br)
18+
self.codec = G722(self.srate, self.default_br, use_numpy=False)
1919

2020
def encode(self, chunk):
2121
pcm16 = pcm16_from(chunk.audio)

0 commit comments

Comments
 (0)