GNU Radio C++ API Reference: codec2_encode_sp.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef INCLUDED_VOCODER_CODEC2_ENCODE_SP_H
12#define INCLUDED_VOCODER_CODEC2_ENCODE_SP_H
13
14#include <gnuradio/sync_decimator.h>
15#include <gnuradio/vocoder/api.h>
16#include <gnuradio/vocoder/codec2.h>
17
18namespace gr {
19namespace vocoder {
20
21/*!
22 * \brief CODEC2 Vocoder Encoder
23 * \ingroup audio_blk
24 *
25 * Input: Speech (audio) signal as 16-bit shorts, sampling rate 8 kHz.
26 *
27 * Output: Vector of unpacked bits, forming one Codec2 frame, per 160
28 * input samples (in 2400 and 3200 bps modes) or per 320 input
29 * samples (in 1200, 1300, 1400 and 1600 bps modes).
30 *
31 */
32 class VOCODER_API codec2_encode_sp : virtual public sync_decimator
33{
34public:
35 // gr::vocoder::codec2_encode_sp::sptr
36 typedef std::shared_ptr<codec2_encode_sp> sptr;
37
38 /*!
39 * \brief Make Codec2 encoder block.
40 *
41 * \param mode Encoded bit rate/mode
42 */
43 static sptr make(int mode = codec2::MODE_2400);
44};
45
46} /* namespace vocoder */
47} /* namespace gr */
48
49#endif /* INCLUDED_VOCODER_CODEC2_ENCODE_SP_H */
gr::sync_decimator::sync_decimator
sync_decimator(void)
Definition sync_decimator.h:31
gr::vocoder::codec2_encode_sp
CODEC2 Vocoder Encoder.
Definition codec2_encode_sp.h:33
gr::vocoder::codec2_encode_sp::make
static sptr make(int mode=codec2::MODE_2400)
Make Codec2 encoder block.
gr::vocoder::codec2_encode_sp::sptr
std::shared_ptr< codec2_encode_sp > sptr
Definition codec2_encode_sp.h:36
gr::vocoder::codec2::MODE_2400
@ MODE_2400
Definition codec2.h:28
codec2.h
api.h
VOCODER_API
#define VOCODER_API
Definition gr-vocoder/include/gnuradio/vocoder/api.h:18
gr::vocoder
Definition alaw_decode_bs.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_decimator.h