PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Generating DTMF Tones With Linux Script Example

Go down

Generating DTMF Tones With Linux Script Example Empty Generating DTMF Tones With Linux Script Example

Post by jamied_uk 28th July 2016, 13:34

Generating DTMF Tones With Linux Script Examples



Setup

Code:
sudo apt-get install -y gen


Normal Speed

Code:
#!/bin/bash
myvar="$@"
gen -d "$myvar"
# 0012024561414



Delayed For Better Reception


Code:
#!/bin/bash
myvar="$@"
# gen -d "$myvar"
# 0012024561414
i=0
while [ $i -lt ${#myvar} ]; do y[$i]=${x:$i:1};
gen -d $i;
sleep 0.5
  i=$((i+1));done


Usage example for Above both scripts

Code:
./generate.sh 21a2fvzx


Code:
./generate2.sh 21a2fvzx
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Generating DTMF Tones With Linux Script Example Empty Re: Generating DTMF Tones With Linux Script Example

Post by jamied_uk 28th July 2016, 13:47

To decode DTMF Tones

Code:
sudo apt-get install -y multimon


Code:
multimon
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum