Skip to content

Instantly share code, notes, and snippets.

@MittalShruti
Created May 6, 2020 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MittalShruti/2e70fb04f52f9cd6c52e95f534f74236 to your computer and use it in GitHub Desktop.
Save MittalShruti/2e70fb04f52f9cd6c52e95f534f74236 to your computer and use it in GitHub Desktop.
Install pycodec2 codec2
!apt-get update && \
apt-get upgrade -y && \
apt-get install -y git make cmake python3-pip
!git clone https://github.com/drowe67/codec2.git
!cd codec2 && \
mkdir build_linux && \
cd build_linux && \
cmake .. && \
make && \
make install
!pip3 install cython numpy
!git clone https://github.com/edwarddixon/pycodec2 && \
cd pycodec2 && \
python3 setup.py install
!sudo apt-get install libcodec2-0.7 libcodec2-dev
import pycodec2
c2 = pycodec2.Codec2(1200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment