|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.hogent.tarsos.dsp.pitch.DTMF
public class DTMF
Utility class to generate Dual-tone multi-frequency (DTMF) signaling tones. This class also contains a list of valid DTMF frequencies and characters. See the WikiPedia article on DTMF.
Field Summary | |
---|---|
static char[][] |
DTMF_CHARACTERS
The list of valid DTMF characters. |
static double[] |
DTMF_FREQUENCIES
The list of valid DTMF frequencies. |
Constructor Summary | |
---|---|
DTMF()
|
Method Summary | |
---|---|
static float[] |
audioBufferDTMF(double f0,
double f1,
int size)
Creates an audio buffer in a float array of the defined size. |
static float[] |
generateDTMFTone(char character)
Generate a DTMF - tone for a valid DTMF character. |
static boolean |
isDTMFCharacter(char character)
Checks if the given character is present in DTMF_CHARACTERS. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] DTMF_FREQUENCIES
public static final char[][] DTMF_CHARACTERS
Constructor Detail |
---|
public DTMF()
Method Detail |
---|
public static float[] generateDTMFTone(char character)
character
- a valid DTMF character (present in DTMF_CHARACTERS}
public static boolean isDTMFCharacter(char character)
character
- the character to check.
public static float[] audioBufferDTMF(double f0, double f1, int size)
f0
- The first fundamental frequency.f1
- The second fundamental frequency.size
- The size of the float array (sample rate is 44.1kHz).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |