diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-03-07 11:21:33 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-03-07 18:10:21 +0100 |
commit | 01c4267261937e495545942131b5bd496eba2269 (patch) | |
tree | 78384e06068ae260358f20622526a66ceb4df482 /gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h | |
parent | ca69ec5d64b67dfc714917bd94162a5d1f131d69 (diff) |
vocoder: Fixed packing problem with Codec2, + GRC bindings, added example
Diffstat (limited to 'gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h')
-rw-r--r-- | gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h b/gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h index 9fe1c2dd43..12b91b0428 100644 --- a/gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h +++ b/gr-vocoder/include/gnuradio/vocoder/codec2_encode_sp.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2005,2013 Free Software Foundation, Inc. + * Copyright 2005,2013,2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -32,13 +32,24 @@ namespace gr { /*! * \brief CODEC2 Vocoder Encoder * \ingroup audio_blk + * + * Input: Speech (audio) signal as 16-bit shorts, sampling rate 8 kHz. + * + * Output: Vector of 50 unpacked bits, forming one Codec2 frame, per 160 input samples. + * + * Note that the Codec2 library produces 7 bytes with a total of 50 bits + * per frame. The bits are MSB-first on these 7 bytes, so the first item + * of the output vector is the MSB of the first byte of the frame. + * If this block is combined with the gr::vocoder::codec2_decode_ps block, + * this will work out of the box. + * */ class VOCODER_API codec2_encode_sp : virtual public sync_decimator { public: // gr::vocoder::codec2_encode_sp::sptr typedef boost::shared_ptr<codec2_encode_sp> sptr; - + /*! * \brief Make Codec2 encoder block. */ |