LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DTMF monitoring via multimon, awk and espeak (https://www.linuxquestions.org/questions/linux-newbie-8/dtmf-monitoring-via-multimon-awk-and-espeak-735355/)

m33600 06-24-2009 02:14 PM

DTMF monitoring via multimon, awk and espeak
 
Hello, the question is:

- How to listen to the spoken DTMD digit every time the sound card capture one?

The objective is radio controlling my pc and interfaces activities dialing dtmf tones via a hand-held transceiver.

I used multimon to hear DTMF tones
I tried to use awk to filter digits and proceed accordingly.
For example, if I key "0" from the radio the system must reboot, etc, but first confirming the operation. " The computer will reboot, send # to confirm"...

I tried to use espeak for a voice confirmation to the remote radio.
The radio connected to the pc soundcard receives the commands and transmits the responses.

I do not simply know how to nest multimon within awk within espeak.

Multimon itself doesnt let me do anything with its stdout because its running ( do not terminate after hearing a digit, which is indeed right).

It would be extremely helpful if I knew how to just speak each digit, without exiting the natural multimon loop.

Say, multimon -a DTMF | awk'{print}' espeak -stdin
If this simply worked!

Is it possible to do? Any help wellcome.
Once I didnt see any DTMF Radio Controlling project in Linux, I plan to publish this shall I can solve this issue.

Thanks / Mario/ sao paulo brazil


All times are GMT -5. The time now is 05:53 PM.