GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
codec2_encode_sp.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2005,2013,2014 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef INCLUDED_VOCODER_CODEC2_ENCODE_SP_H
24 #define INCLUDED_VOCODER_CODEC2_ENCODE_SP_H
25 
26 #include <gnuradio/vocoder/api.h>
29 
30 namespace gr {
31  namespace vocoder {
32 
33  /*!
34  * \brief CODEC2 Vocoder Encoder
35  * \ingroup audio_blk
36  *
37  * Input: Speech (audio) signal as 16-bit shorts, sampling rate 8 kHz.
38  *
39  * Output: Vector of unpacked bits, forming one Codec2 frame, per 160
40  * input samples (in 2400 and 3200 bps modes) or per 320 input
41  * samples (in 1200, 1300, 1400 and 1600 bps modes).
42  *
43  */
45  {
46  public:
47  // gr::vocoder::codec2_encode_sp::sptr
48  typedef boost::shared_ptr<codec2_encode_sp> sptr;
49 
50  /*!
51  * \brief Make Codec2 encoder block.
52  *
53  * \param mode Encoded bit rate/mode
54  */
55  static sptr make(int mode=codec2::MODE_2400);
56  };
57 
58  } /* namespace vocoder */
59 } /* namespace gr */
60 
61 #endif /* INCLUDED_VOCODER_CODEC2_ENCODE_SP_H */
boost::shared_ptr< codec2_encode_sp > sptr
Definition: codec2_encode_sp.h:48
Include this header to use the message passing features.
Definition: logger.h:131
CODEC2 Vocoder EncoderInput: Speech (audio) signal as 16-bit shorts, sampling rate 8 kHz...
Definition: codec2_encode_sp.h:44
synchronous N:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_decimator.h:37
Definition: codec2.h:40
#define VOCODER_API
Definition: gr-vocoder/include/gnuradio/vocoder/api.h:30