RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Software > Streaming / Broadcasting / Audio Recording

Streaming / Broadcasting / Audio Recording Interested in putting your scanner online for others to hear? Want to listen to other radios on the internet. This forum is here for you to discuss these topics related to streaming scanners online.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-2011, 9:11 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default New TwoToneDetect in the works - Python based

Hi all,

I've started work on a ground-up rewrite of my TwoToneDetect software (website of existing program and forum thread) using the Python language instead of the LabView language that it was originally written in. I'm doing this to make the code more accessible to other developers out there, as Python development doesn't require any expensive tools or programs. I'm also hoping this new version will be more stable (not crash every few days), although that remains to be seen. Finally, the new version handles stacked pages, which is something I know a lot of people really wanted. Development of this new version is still in its infancy, but I'm looking for a few people to start testing it. If you have experience with Python programming, all the better. Right now the basic functionality is there but it's really bare-bones, with no real GUI to speak of. Here's a snapshot of my "to do" list:

Supported Features
  • QuickCall2 format decoding
  • Stacked page handling
  • Email as mp3
  • Configurable record time
  • Configurable email
  • Configurable tone tolerance

Features still to add
  • Send to multiple email addresses
  • Add time of detection to email subject
  • Long tone support
  • Selectable sound card for recording, playback
  • Playback while recording after tone detection
  • Configurable audio file directory
  • Configurable squelch threshold
  • Level meter
  • Record delay
  • Exclude email during certain time of day
  • Scanner HOLD/SCAN control via serial port
  • GUI
  • Tone offset
  • Tone set detection display or log
  • Status on GUI

Once the program is a little further developed I'll create a new page on my website for it with instructions, etc. In the meantime, an zip file that has the EXE version of the program can be downloaded from SourceForge here:

Once you download the zip file, extract it and read the README.txt file for instructions on how to get the program configured and operating. Once I get a little more familiar with SourceForge, I'll also post the source code there so others can add features or make improvements. This is my first experience with Python, so development may be a little rough, but hopefully we'll end up with an improved version of the program. I've got a lot on my plate right now, so development might also be slow, but I wanted to get something released so people can start playing around with it and get some feedback in the pipe.

Any feedback is appreciated.

Regards,

Andy
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 07-19-2011, 9:16 PM
aliby19's Avatar
Member
   
Join Date: Mar 2005
Location: Whitestown, IN
Posts: 186
Default

Hi Andy,

Great to hear! I will be more than happy to test (and do have some limited python experience), so whatever I can do to help, just let me know!

Thanks!
__________________
FF/EMT | Boone Co, IN Feeds: Public Safety & Fire/EMS Dispatch
Radios: Moto 1550XLS VHF, XTS2500 800MHz, Yaesu VX7R, FT51R, 7800R
Scanners: BCD396XT, BCD996XT, HomePatrol-1, Regency MX3000
Reply With Quote
  #3 (permalink)  
Old 07-20-2011, 2:59 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

For now, I'd say download it and see if you can get it working. If it runs ok, try letting it run for several days and let me know if any issues pop up.

Thanks,

Andy
Reply With Quote
  #4 (permalink)  
Old 07-25-2011, 10:30 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default New Version Uploaded

I just uploaded a new version to SourceForge (what I'm calling version 40). The zip file contains both the EXE and the Python source code. Here's the link to get it. Here's a list of what's in this version:

Supported Features
- QuickCall2 format decoding
- Email as mp3
- Configurable record time
- Configurable email
- Configurable tone tolerance
- Send to multiple email addresses
- Selectable sound card for recording
- Selectable sound card for playback
- Record delay
- Add time of detection to email subject
- Playback while recording after tone detection
- Long tone support
- Configurable squelch threshold

Features still to add
- Configurable audio file directory
- Level meter
- Exclude email during certain time of day
- Scanner HOLD/SCAN control via serial port
- GUI
- Tone offset
- Tone set detection display or log
- Status on GUI

I've had it running for a day without any issues so far. Anyone else have any feedback yet?

Thanks,

Andy
Reply With Quote
  #5 (permalink)  
Old 07-26-2011, 2:40 PM
Member
   
Join Date: Aug 2006
Posts: 18
Default

I tried the new Two Tone 40 but I am unable to get the program to run. Every time I open it it just keeps closing. When I use the Two Tone 30 it works fine. Is there a problem with the new one or am I missing something in the set up. I used the same setting for both.
Reply With Quote
Sponsored links
  #6 (permalink)  
Old 07-26-2011, 3:38 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Try opening a command prompt window and running the program from there (as opposed to just double clicking on the EXE file). That way if it spits out an error you'll be able to see what it is. If it does give you an error message, let me know what it is.

Thanks,

Andy
Reply With Quote
  #7 (permalink)  
Old 07-26-2011, 3:55 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Also, just so you're aware, a few new items have been added to the config file from v30 to v40, so if you're trying to use the same config file that you downloaded with v30 that may give you some problems. Just open the v40 config file to see what new lines are, and copy those over to your v30 config file to avoid re-entering all of the info.

Andy
Reply With Quote
  #8 (permalink)  
Old 07-26-2011, 5:26 PM
Jay911's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Feb 2002
Location: Bragg Creek, Alberta
Posts: 6,524
Default

I get home from vacation tomorrow afternoon. I have 0.21/0.24/0.25 chugging away on my home PC right now. I'll try to download 40 and give it a shot when I get back.

Any thoughts on whether this will perform any better/worse than the above, on Windows 7 and/or Windows 98 or XP?
Reply With Quote
  #9 (permalink)  
Old 07-26-2011, 9:12 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Oct 2003
Location: Westminster, Ma
Posts: 83
Default

I had no luck with the first version. A cmd window opened and various numbers just scrolled forever.

Will give the new version a try tomorrow..
__________________
John
www.scannorthcounty.net
Reply With Quote
Sponsored links
  #10 (permalink)  
Old 07-26-2011, 9:17 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Quote:
Originally Posted by johnmac View Post
I had no luck with the first version. A cmd window opened and various numbers just scrolled forever.

Will give the new version a try tomorrow..
Sounds like it may have been grabbing sound from the wrong sound card. In the first version it only used the default sound card. In the new version you can select which card to use.

I'm having some issues with the program crashing and causing a restart, trying to figure out if it's the sound card I'm using (which I've had similar issues with in the past) or the program.

Andy
Reply With Quote
  #11 (permalink)  
Old 07-27-2011, 9:37 AM
Member
   
Join Date: Aug 2006
Posts: 18
Default

Ok I tried to open the new program in the command prompt and get an error her it is.

Traceback<most recent call last>:
File "<string>" , line 61 , in <module>
File "E:\Python\build\pyi.win32\TwoTone4\out PYZI.pyz/configParser" , line 322 , in get
configPasher. nosectionError: no section: ' section 1 '
Reply With Quote
  #12 (permalink)  
Old 07-27-2011, 10:07 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Quote:
Originally Posted by asmith136 View Post
Ok I tried to open the new program in the command prompt and get an error her it is.

Traceback<most recent call last>:
File "<string>" , line 61 , in <module>
File "E:\Python\build\pyi.win32\TwoTone4\out PYZI.pyz/configParser" , line 322 , in get
configPasher. nosectionError: no section: ' section 1 '
Ok that means it's not finding the config file info. Make sure that the config.cfg file is in the same directory as the program. If it is, make sure the first line of the config file is: [Section 1]


Andy
Reply With Quote
  #13 (permalink)  
Old 07-27-2011, 10:13 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Quote:
Originally Posted by aaknitt View Post
Ok that means it's not finding the config file info. Make sure that the config.cfg file is in the same directory as the program. If it is, make sure the first line of the config file is: [Section 1]
Aha! I just looked at the contents of the .zip file that got uploaded and I realized I forgot to rename the two config files before zipping them. Rename sampleconfig.cfg to config.cfg and rename sampletones.cfg to tones.cfg

That should do the trick. Sorry about the oversight, I'll upload a new .zip file with corrected filenames.

Andy
Reply With Quote
  #14 (permalink)  
Old 07-27-2011, 10:24 AM
Member
   
Join Date: Aug 2006
Posts: 18
Default

That worked. Thanks
Reply With Quote
  #15 (permalink)  
Old 07-27-2011, 12:23 PM
Forts's Avatar
Mentor
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2002
Location: Strathroy, Ontario Canada
Posts: 3,861
Default

I just gave the new version a try... When it starts up all I get is a box that I can select my audio input and output devices with. And an Exit button at the bottom. Don't seem to see anything else at all....
__________________
Middlesex County/Strathroy-Caradoc Fire Paging Alerts: http://groups.google.com/group/middlesex-fire
Reply With Quote
Sponsored links
        
  #16 (permalink)  
Old 07-27-2011, 12:29 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

Quote:
Originally Posted by Forts View Post
I just gave the new version a try... When it starts up all I get is a box that I can select my audio input and output devices with. And an Exit button at the bottom. Don't seem to see anything else at all....
Yep, that's about all you'll get right now until the GUI is better developed. It should still be functional though as long as you have the config.cfg and tones.cfg files set up properly. Read the README.TXT file for more info.

Andy
Reply With Quote
  #17 (permalink)  
Old 07-27-2011, 12:33 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Oct 2003
Location: Westminster, Ma
Posts: 83
Default

I have mine downloaded and set-up. Changed my sound card OK and updated the config files. Now just waiting for some activity. Will report back as soon as I get some activity, also converted my email password with no problem.
__________________
John
www.scannorthcounty.net
Reply With Quote
  #18 (permalink)  
Old 07-27-2011, 12:40 PM
Forts's Avatar
Mentor
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2002
Location: Strathroy, Ontario Canada
Posts: 3,861
Default

Quote:
Originally Posted by aaknitt View Post
Yep, that's about all you'll get right now until the GUI is better developed. It should still be functional though as long as you have the config.cfg and tones.cfg files set up properly. Read the README.TXT file for more info.

Andy
Ahhhh ok! I was expecting something along the lines of the older version. Thanks!
__________________
Middlesex County/Strathroy-Caradoc Fire Paging Alerts: http://groups.google.com/group/middlesex-fire
Reply With Quote
  #19 (permalink)  
Old 07-27-2011, 1:05 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

You can do a limited check on functionality by unsquelching the scanner. You should then see some "random" numbers being displayed above the buttons on the GUI. What's being displayed is the most dominant frequency in the signal, but this only shows up when the audio level exceeds a certain level (as set in the config file).

Andy
Reply With Quote
  #20 (permalink)  
Old 07-27-2011, 1:08 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 841
Default

For those doing testing, let me know if you get any double detections of the same page. I've had this occur a couple times but I haven't sat down to troubleshoot it yet. I'm pretty sure it has to do with the stacked page handling, and it's not a huge problem, but it is a bug. I end up getting two emails for the same page sometimes, but not always.

Thanks,

Andy
Reply With Quote
Reply

Tags
twotonedetect

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 3:03 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2011 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions