TwoToneDetect Beta

Status
Not open for further replies.

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Hi there,

First of all, great software! Thank you for creating it!

I have installed the software and am using gmail as my smtp. When I generate the appropriate tones, I get an e-mail but no wav attachment. When I put lame.exe in the data directory, however, I get an mp3 attachment. Unfortunately, I need the wav because my blackberry won't accept mp3's (long story -- see many frustrated blackberry threads online).

Just to double check, I checked my GMail sent items and the blank e-mails with just the appropriate subject lines are all that appears to be sent. Can anyone think of why it's not sending off the wav's (which I can see have been created in the /data/audio directory) but will send mp3's if lame is installed?

Thank you!!

I'm getting the same result here. I think you've found a bug. This probably cropped up after I changed where the audio files are stored. I probably didn't check the .wav file functionality after I made the change since I've only been using mp3 files. My bad...I'll get it fixed and let you know when the corrected version is available.

Andy
 

mst207

Member
Joined
Dec 21, 2008
Messages
7
Thanks, Andy!

Interestingly, using MP3 I'm having the same issues as Jason. If I send the mp3 created by TTD directly to my phone's MMS address (BB Curve), it's a corrupted file. If I send it first to GMail then to the phone's MMS address, works fine. I dunno.

Great work and thanks again!!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
New Version Available

I'm getting the same result here. I think you've found a bug. This probably cropped up after I changed where the audio files are stored. I probably didn't check the .wav file functionality after I made the change since I've only been using mp3 files. My bad...I'll get it fixed and let you know when the corrected version is available.

Andy

I just uploaded a new version that should fix the aforementioned .wav file bug.

Andy
 

mst207

Member
Joined
Dec 21, 2008
Messages
7
Thanks for the fix, Andy!

Still strange... when sent via MMS from TwoToneDetect to my blackberry or wife's RAZR as .wav, still a corrupted file. But again, when sent to gmail first and then forwarded to phones, plays fine. Beyond my pay grade, I guess!

Thanks again.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Thanks for the fix, Andy!

Still strange... when sent via MMS from TwoToneDetect to my blackberry or wife's RAZR as .wav, still a corrupted file. But again, when sent to gmail first and then forwarded to phones, plays fine. Beyond my pay grade, I guess!

Thanks again.

Yeah, I think it has something to do with the email header generated from the program versus sent directly from gmail. I've played around with it for a few hours but haven't had any luck yet. I guess the workaround is to set up a gmail filter to automatically forward the emails to your phone's MMS account. I'm not familiar enough with LabView's method of calling .NET functions and the MIME protocol to be able to do much more than stumble around blindly and hope I fix it.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Try it Now

Thanks for the fix, Andy!

Still strange... when sent via MMS from TwoToneDetect to my blackberry or wife's RAZR as .wav, still a corrupted file. But again, when sent to gmail first and then forwarded to phones, plays fine. Beyond my pay grade, I guess!

Thanks again.

I just uploaded a new version that seems to be sending MP3 files correctly to my wife's phone. Somethings still not quite ideal though, because when I send an MP3 from gmail to my phone (which is older and doesn't support mp3 playback), Verizon converts it to a .aac file so that my phone can play it. However, emails sent from TwoToneDetect aren't converted...they show up as mp3 attachments, which my phone can't do anything with. If your phone supports mp3, this new version might now work with MMS. Let me know.

Andy
 

mst207

Member
Joined
Dec 21, 2008
Messages
7
I think whatever you did worked. My blackberry can now receive both mp3's and wav's e-mailed out of TwoToneDetect!

My wife's RAZR V3M on the same provider, however, is a no-go. Both wav's and mp3's attempted get a "File Type Not Recognized" error. It's a couple years old so maybe the newer RAZR's support mp3's directly.

Anyway, thanks for taking the time to troubleshoot it, Andy!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
New Version Available

I just uploaded a new version (version 18) with the following new features:
  • COM port is deselectable to allow access by other programs if unused
  • A user-specified time interval during which emails will not be sent - can be used to prevent emails from being sent during daily test pages
  • Tone set information is now stored in a tab-delimited text file. Tone information can be edited in the program or with a text editor. This allows a virtually unlimited number of tone sets to be added.
  • Support for more alternate audio devices (sound cards)
  • User-specified directory for audio files
  • Input for a command-line string that will be executed upon tone detection. This allows users to create custom programs or batch files that will execute upon tone detection.
  • User-selectable SMTP port (authenticated emails only)

Since I haven't really tested this new version yet, I've kept the previous version posted on the site along with this new one:

http://radioetcetera.googlepages.com/twotoneprogram

Any feedback is appreciated.

Andy
 

jpryor

Member
Joined
Aug 22, 2001
Messages
632
Location
Nashville / Green Hill TN
Just an FYI for folks upgrading to Version 18, I needed to uninstall the previous version to get this version to install correctly. Also you will need to reenter your previous tones and setting data, the old config.cfg file will not work. But very nice to have the all of the tones data stored in a dedicated and delimited file.
 

jpryor

Member
Joined
Aug 22, 2001
Messages
632
Location
Nashville / Green Hill TN
Is anybody else having email issues with Version 18? It is not sending emails via my Gmail anymore since the upgrade. I also tried via my AT&T email account with no luck. It is decoding and saving files from my now larger tone set though.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Is anybody else having email issues with Version 18? It is not sending emails via my Gmail anymore since the upgrade. I also tried via my AT&T email account with no luck. It is decoding and saving files from my now larger tone set though.

It's working for me. Make sure the email settings are all correct since the old config file won't work anymore. Username, password, and SMTP port especially (SMTP port should be 587 for gmail). Also make sure the "upper" & "lower" time limits are both 00:00 or something like that to make sure that the current system time isn't in between the limits, which would prevent emails from being sent.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Is anybody else having email issues with Version 18? It is not sending emails via my Gmail anymore since the upgrade. I also tried via my AT&T email account with no luck. It is decoding and saving files from my now larger tone set though.

Also, something to help with troubleshooting is to watch the "status" window after a tone set has been detected. If the status window says "sending email" after it's done recording the audio, then it is actually attempting to send the email and the problem is probably in the email settings. If the status jumps directly from "recording audio" to "checking for A tones" then it is not trying to send the email and the problem is with the upper & lower time limit fields.

Andy
 

plectron25

Member
Premium Subscriber
Joined
Feb 18, 2008
Messages
18
Is anybody else having email issues with Version 18? It is not sending emails via my Gmail anymore since the upgrade. I also tried via my AT&T email account with no luck. It is decoding and saving files from my now larger tone set though.

I just upgraded to version 18 and after deleting the old config file (which 18 tried to use) I was able to re-configure it and get fine results. I am using my own in-house SMTP server, so I can't say how outside servers might work.

The software is even better than before; the new features are appreciated. I do find the new tone entering GUI interface a bit confusing though- each of the columns scrolls independantly which doesn't make sense. Don't you want tone a, b description and e-mail to all in a single connected row, similar to the tab delimeted config version?
 

plectron25

Member
Premium Subscriber
Joined
Feb 18, 2008
Messages
18
Use with IIS?

I have set up TwoTone to work in conjunction with Proscan 1.8.2, ORB and IIS to provide access to scanner activity in both live and archival style along with e-mailed important events through TwoTone. Now that version 18 allows me to select alternate locations to save the audio I have moved the folder over to my IIS/Orb accessible directories. One function that would be handy here would be a way to auto-delete the historical recordings. I plan to find and set up a cron program to clean out file over x days old, but an option to have that happen automatically from within TwoTone would be appreciated.

I second the previous request for an enhancement to pause recording during silence in the (30 second) record period. Sometimes our dispatchers send out the tones while still getting caller information leading to some period of delay before they start providing the details.

It would also be handy if there was a short circular buffer running so that the first tone could be played and e-mailed/saved in addition to the second tone- I have gotten pretty used to recognizing the two tones by ear, so it can be a bit disconcerting to only hear the second tone.

Nice job on the software!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Version 19 Available

I do find the new tone entering GUI interface a bit confusing though- each of the columns scrolls independantly which doesn't make sense. Don't you want tone a, b description and e-mail to all in a single connected row, similar to the tab delimeted config version?

Yeah, I just fixed this and uploaded it as version 19. I pulled 18 but kept 17 available. You may need to uninstall 18 before installing 19, but the config and tone definition files should work from 18 to 19.

Andy
 

GTR8000

NY/NJ Database Guy
Database Admin
Joined
Oct 4, 2007
Messages
15,764
Location
BEE00
New version is not saving the upper and lower no-email times to the config file. Keeps resetting to 01:00/01:00 each time the program is run.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Updated Version 19 Available

New version is not saving the upper and lower no-email times to the config file. Keeps resetting to 01:00/01:00 each time the program is run.

Fixed. I just posted an updated version 19 with the correction. Thanks for the catch.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,302
Version 20 Available

I second the previous request for an enhancement to pause recording during silence in the (30 second) record period. Sometimes our dispatchers send out the tones while still getting caller information leading to some period of delay before they start providing the details.

I just posted a version 20 that has a new parameter called "Record Delay". This allows you to specify a delay time (in seconds) between the time the tone set is successfully decoded and when the program will start looking for audio to record. After the delay period has expired, the program will look for an audio signal that is greater than the “Audio Threshold” parameter described above. After the delay has expired AND a signal greater than “Audio Threshold” has been detected, the program will start recording audio.

This is not VOX recording, but does allow a VOX trigger to start recording after a specified delay. So if you set the delay to something like 4 or 5 seconds (past the end of the second tone), it won't start recording until it detects audio after the delay is up. Hope that makes sense.

I'll be on to the next stage of vacation early tomorrow morning and probably won't have internet access again until after the new year, so this will be the last version update for awhile. Let me know how it's working.

Andy
 
Status
Not open for further replies.
Top