|
UniMRCP
1.3.0
|
DTMF detector. More...
#include "apr.h"#include "apr_pools.h"#include "apt.h"#include "mpf_frame.h"#include "mpf_stream.h"Go to the source code of this file.
Typedefs | |
| typedef APT_BEGIN_EXTERN_C enum mpf_dtmf_detector_band_e | mpf_dtmf_detector_band_e |
| typedef struct mpf_dtmf_detector_t | mpf_dtmf_detector_t |
Enumerations | |
| enum | mpf_dtmf_detector_band_e { MPF_DTMF_DETECTOR_INBAND = 0x1, MPF_DTMF_DETECTOR_OUTBAND = 0x2, MPF_DTMF_DETECTOR_BOTH = MPF_DTMF_DETECTOR_INBAND | MPF_DTMF_DETECTOR_OUTBAND } |
Functions | |
| struct mpf_dtmf_detector_t * | mpf_dtmf_detector_create_ex (const struct mpf_audio_stream_t *stream, enum mpf_dtmf_detector_band_e band, struct apr_pool_t *pool) |
| char | mpf_dtmf_detector_digit_get (struct mpf_dtmf_detector_t *detector) |
| apr_size_t | mpf_dtmf_detector_digits_lost (const struct mpf_dtmf_detector_t *detector) |
| void | mpf_dtmf_detector_reset (struct mpf_dtmf_detector_t *detector) |
| void | mpf_dtmf_detector_get_frame (struct mpf_dtmf_detector_t *detector, const struct mpf_frame_t *frame) |
| void | mpf_dtmf_detector_destroy (struct mpf_dtmf_detector_t *detector) |
DTMF detector.
Detector of DTMF tones sent both out-of-band (RFC4733) and in-band (audio).
DTMF detector band
| typedef struct mpf_dtmf_detector_t mpf_dtmf_detector_t |
Opaque MPF DTMF detector structure definition
|
read |
Create MPF DTMF detector (advanced).
| stream | A stream to get digits from. |
| band | One of:
|
| pool | Memory pool to allocate DTMF detector from. |
| void mpf_dtmf_detector_destroy | ( | struct mpf_dtmf_detector_t * | detector | ) |
Free all resources associated with the detector.
| detector | The detector. |
| char mpf_dtmf_detector_digit_get | ( | struct mpf_dtmf_detector_t * | detector | ) |
Get DTMF digit from buffer of digits detected so far and remove it.
| detector | The detector. |
| apr_size_t mpf_dtmf_detector_digits_lost | ( | const struct mpf_dtmf_detector_t * | detector | ) |
Retrieve how many digits was lost due to full buffer.
| detector | The detector. |
| void mpf_dtmf_detector_get_frame | ( | struct mpf_dtmf_detector_t * | detector, |
| const struct mpf_frame_t * | frame | ||
| ) |
Detect DTMF digits in the frame.
| detector | The detector. |
| frame | Frame object passed in stream_write(). |
| void mpf_dtmf_detector_reset | ( | struct mpf_dtmf_detector_t * | detector | ) |
Empty the buffer and reset detection states.
| detector | The detector. |
1.8.3.1