Hello out there!
For every incoming call on a dedicated landline number answering machine my router sends an e-mail to my MS Outlook. Detecting a registered caller ID Outlook takes a VBA script to forward the attached WAV-file to a local folder. It shows up with a modified filename in a pattern like [YYYY-MM-DD]-[HH-MM]-[Caller ID].wav. Now PowerShell triggers audacity to do its job.
The registered caller is sending DTMF codes to be converted in TXT-data and published on a webserver. The conversion and the publishing to TXT is handled by VBA in MS Excel 2019 (and works already).
Audacity’s job is to chop the incoming call into the contained 1 to 15 pulses, do a plot spectrum export to files named as above plus -[Segment-ID] for example “2021-04-30-Bon Jovi-1…15”
The execution of following procedure shall be triggered by a Command Line / PowerShell script:
1.) open a WAV file
Cut all unneeded frequencies:
- high pass filter 650 Hz and above
- low pass filter 1500 Hz and below ’ frequencies from 650 to 1500 Hz must remain
- noise gate threshold -65 dB ’ only louder segments should be processed
2.) find all pulses greater than 1,5 seconds
- chop into selections
- plot a spectrum (Spectrum / Blackman-Harris) of the selection / segment and export to [path/]2021-04-30-Bon Jovi-1…15.txt
3.) close Audacity without saving
Now it’s VBA’s job to continue.
My problem is that I’ve got no idea how to implement this procedure in Audacity. I found some information about macros and Nyquist but that’s all far away of my knowledge.
If we -you and me- can make it run, I’ll publish here a free DTMF decoder without any Linux help. Windows can do too …
THX a lot 'n more! for any help