Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [seberm@katie fake]$ fakeroot make
- cc -O2 -s -c dtmf2num.c
- dtmf2num.c: In function ‘do_8000’:
- dtmf2num.c:350: warning: assignment makes pointer from integer without a cast
- cc -O2 -s -c dsp.c
- cc -O2 -s -c resample2.c
- resample2.c: In function ‘av_resample_close’:
- resample2.c:224: warning: attempt to free a non-heap object ‘c’
- cc -O2 -s -o dtmf2num -lm dtmf2num.o dsp.o resample2.o
- [seberm@katie fake]$ ./dtmf2num
- DTMF2NUM 0.1c
- by Luigi Auriemma
- e-mail: aluigi@autistici.org
- web: aluigi.org
- Usage: ./dtmf2num [options] <file.WAV>
- Options:
- -r F C B consider the file as raw headerless PCM data, you must specify the
- Frequency, Channels and Bits like -r 44100 2 16
- -o disable the automatic optimizations: DC bias adjust and normalize.
- use this option only if your file is already clean and normalized
- -w FILE debug option for dumping the handled samples from the memory to FILE
- [seberm@katie fake]$ ./dtmf2num /home/seberm/nahravka.wav
- DTMF2NUM 0.1c
- by Luigi Auriemma
- e-mail: aluigi@autistici.org
- web: aluigi.org
- - open /home/seberm/nahravka.wav
- wave size 168160
- format tag 1
- channels: 1
- samples/sec: 8000
- avg/bytes/sec: 16000
- block align: 2
- bits: 16
- samples: 84080
- bias adjust: -95
- volume peaks: -28855 28855
- normalize: 3912
- - MF numbers: 47477444
- - DTMF numbers: 5A64652063746574652074616A656D737476693A206B61726269646B610A
- [seberm@katie fake]$ hexdump
- Makefile dsp.c dsp.o dtmf2num dtmf2num.c dtmf2num.exe dtmf2num.o dtmf2num.zip mywav.h resample2.c resample2.o
- [seberm@katie fake]$ hexdump --help
- hexdump: invalid option -- '-'
- hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]
- [seberm@katie fake]$ hexdump -help
- hexdump: invalid option -- 'h'
- hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] [file ...]
- [seberm@katie fake]$ echo 5A64652063746574652074616A656D737476693A206B61726269646B610A | hexdump
- 0000000 4135 3436 3536 3032 3336 3437 3536 3437
- 0000010 3536 3032 3437 3136 4136 3536 4436 3337
- 0000020 3437 3637 3936 4133 3032 4236 3136 3237
- 0000030 3236 3936 3436 4236 3136 4130 000a
- 000003d
- [seberm@katie fake]$
Add Comment
Please, Sign In to add comment