From 49ace7691b7ff60b6ece50260fc71dd44f7f4be3 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Wed, 18 Mar 2015 19:49:08 +0000 Subject: [PATCH] README changes thats Eric for the patch git-svn-id: https://svn.code.sf.net/p/freetel/code@2081 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/README | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/codec2-dev/README b/codec2-dev/README index 58994747..6e9a824e 100644 --- a/codec2-dev/README +++ b/codec2-dev/README @@ -16,18 +16,41 @@ Quickstart NOTE: Use the "codec2" or "codec2-dev" depending on which repository you are working with +NOTE: You may not have the necessary speex libraries installed. Some + distributions may have packages available + i.e. sudo apt-get install speex-* + alternatively, visit http://www.speex.org and follow the instructions + 1/ Listen to Codec 2: + $ cd codec2 $ mkdir build_linux + $ cd build_linux $ cmake .. $ make $ ./src/c2demo ../raw/hts1a.raw hts1a_c2.raw - $ play ../raw/hts1a.raw hts1a_c2.raw + $ play -t raw -r 8000 -e signed-integer -b 16 ../raw/hts1a.raw + $ play -t raw -r 8000 -e signed-integer -b 16 ./hts1a_c2.raw + +2/ Compress, Decompress and then play a file: -2/ Compress and Decompress a file: + using 2400 bps bit rate encoding $ ./src/c2enc 2400 ../raw/hts1a.raw hts1a_c2.bit - $ ./src/c2dec 2400 hts1a_c2.bit hts1a_c2.raw + $ ./src/c2dec 2400 hts1a_c2.bit hts1a_c2_2400.raw + + which can be played with + + $ play -t raw -r 8000 -e signed-integer -b 16 ./hts1a_c2_2400.raw + + using 450 bps bit rate encoding + + $ ./src/c2enc 450 ../raw/hts1a.raw hts1a_c2.bit + $ ./src/c2dec 450 hts1a_c2.bit hts1a_c2_450.raw + + which can be played with + + $ play -t raw -r 8000 -e signed-integer -b 16 ./hts1a_c2_450.raw 3/ Same thing with pipes: -- 2.25.1