EliasOenal / multimon-ng

GNU General Public License v2.0
923 stars 206 forks source link

Build `gen` binary via cmake? #200

Closed tomfitzhenry closed 1 year ago

tomfitzhenry commented 1 year ago

I'd like to use the gen binary to generate DTMF, for use in a distribution-level integration test which will test the audio stack by generating DTMF, pushing that through the linux audio stack, and checking via alsa-aloop that DTMF came out the other side, using multimon-ng.

Is it possible to compile gen via cmake?

tomfitzhenry commented 1 year ago

Sorry, just realised sox can do this:

sox -n -t wav dtmf-1.wav synth 2 sin 697 sin 1209 remix -
sox -n -t wav dtmf-3.wav synth 2 sin 697 sin 1477 remix -
sox -n -t wav dtmf-4.wav synth 2 sin 770 sin 1209 remix -
sox -n -t wav dtmf-5.wav synth 2 sin 770 sin 1336 remix -

sox dtmf-{3,1,4,1,5}.wav num.wav

multimon-ng -a DTMF -t wav num.wav

Freqencies taken from https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling#Keypad .