---
name: "DTMFDetect"
section: "3cc"
platform: "linux"
package: "libccaudio-dev"
version: "1.2.0-1+b1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/DTMFDetect/3cc"
---

# DTMFDetect(3cc)

DTMFDetect is used for detecting DTMF tones in a stream of audio.

## NAME

DTMFDetect - **DTMFDetect** is used for detecting DTMF tones in a stream of audio.

## SYNOPSIS

`#include <audio.h>`

### Public Member Functions

int **putSamples** (int16\_t buffer\[\], int count)\
 int **getResult** (char \*buf, int max)\

### Protected Member Functions

void **goertzelInit** (goertzel\_state\_t \*s, tone\_detection\_descriptor\_t \*t)\
 void **goertzelUpdate** (goertzel\_state\_t \*s, int16\_t x\[\], int samples)\
 float **goertzelResult** (goertzel\_state\_t \*s)\

## Detailed Description

**DTMFDetect** is used for detecting DTMF tones in a stream of audio.

It currently only supports 8000Hz input.

## Author

Generated automatically by Doxygen for ccAudio from the source code.
