TwoToneDetect New TwoToneDetect in the works - Python based

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I ended up restarting the computer and entering all the email info again and it is now working. The problem I am now having is that the recordings are 1:30 long and the dispatch is only about .30 long. How do I shorten this up?

In the Edit Config Info window set the Record Time to 20-30 sec. and the release time to 1-2 sec. At the end of the Record Time, TTD listens for silence equal to the release time before ending the recording.

Also, adjust your Audio Squelch slider so the window shows No Audio at the top when there is no radio traffic and a tone value when squelch is broken, i.e., someone is talking on the radio.
 

lrffemt

Newbie
Joined
May 2, 2018
Messages
1
Location
Central, IL
How do I avoid multiple emails/texts for each dispatch?

I have three tone sets set up. I'll call them A (paramedics), B (firehouse 1), and C (firehouse 2).

When a medical is dispatched, dispatch may tone out A, A/B, or A/C.
When a fire is dispatched, the tone out may include B, C, B/C, or A/B/C.
Any of the above could be toned out by themselves as well. A, B, or C.

How do I go about receiving just ONE email/text when a call is dispatched? I know the "ignore_after" function is used to eliminate multiple emails, and it is currently set to the default of 60 for each tone set. What do I change that to in order to eliminate multiple emails during a tone out if more than one tone set is dispatched while still receiving an email if only one tone set is dispatched?
 

chassed

Member
Feed Provider
Joined
Nov 6, 2009
Messages
32
Location
CT
In the Edit Config Info window set the Record Time to 20-30 sec. and the release time to 1-2 sec. At the end of the Record Time, TTD listens for silence equal to the release time before ending the recording.

Also, adjust your Audio Squelch slider so the window shows No Audio at the top when there is no radio traffic and a tone value when squelch is broken, i.e., someone is talking on the radio.

I have record time set to 30 sec. release time set to 2 sec and the squelch is all the way down and show "no Audio". But I am still ending up with 1:24 recordings.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I have record time set to 30 sec. release time set to 2 sec and the squelch is all the way down and show "no Audio". But I am still ending up with 1:24 recordings.

After you make changes in the Configuration Window are you using the Exit/Save button rather than the X in the corner? After you have made changes in the Configuration you need to restart TTD for the changes to take effect. Otherwise, it looks like you have it right. 90 sec is the max recording time, it looks like you are hitting the max for each recording. Usually this is related to the squelch level setting.
 

chassed

Member
Feed Provider
Joined
Nov 6, 2009
Messages
32
Location
CT
After you make changes in the Configuration Window are you using the Exit/Save button rather than the X in the corner? After you have made changes in the Configuration you need to restart TTD for the changes to take effect. Otherwise, it looks like you have it right. 90 sec is the max recording time, it looks like you are hitting the max for each recording. Usually this is related to the squelch level setting.

Yes I have been using the save exit and if I close it and reopen it has saved my changes. What is the best way to set the squelch? Right now I have it all the way to the left.
 

canthonysmith

Member
Joined
Nov 20, 2011
Messages
54
Location
Arkansas
Could not retrieve tracking file

Can someone please assist me with this issue? It continues to show up on all 3 servers.
 

Attachments

  • TTD.jpg
    TTD.jpg
    71.4 KB · Views: 270

KC2GYU

Newbie
Premium Subscriber
Joined
Jan 13, 2010
Messages
2
Location
Southern NJ
Having some real difficulty with my dept's computer that was running TTD, however is now refusing to start- it gives me a message:
TwoToneDetect had trouble finding or accessing an audio device on your system. You may need to plug a speaker and/or line input into your PC in order for the system to activate the audio device.

I have tried different speakers/microphone lines(from Scanner), I even got a USB audio device from Amazon, and tried hooking into that to no avail. I can listen to the stream from the scanner through the computer speakers, so the computer is definitely seeing the audio. TTD just refuses to even open to allow me to change the input/outputs, which is dumb TBH.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Having some real difficulty with my dept's computer that was running TTD, however is now refusing to start- it gives me a message:
TwoToneDetect had trouble finding or accessing an audio device on your system. You may need to plug a speaker and/or line input into your PC in order for the system to activate the audio device.

I have tried different speakers/microphone lines(from Scanner), I even got a USB audio device from Amazon, and tried hooking into that to no avail. I can listen to the stream from the scanner through the computer speakers, so the computer is definitely seeing the audio. TTD just refuses to even open to allow me to change the input/outputs, which is dumb TBH.

Try opening your config.cfg file in a text editor and setting your input and output device indexes both to 0.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
Can someone please assist me with this issue? It continues to show up on all 3 servers.

This error is telling us that the FTP connection is timing out. Verify that the username and password are correct and that you can access the FTP server using another program like WinSCP or similar.

Andy
 

canthonysmith

Member
Joined
Nov 20, 2011
Messages
54
Location
Arkansas
This error is telling us that the FTP connection is timing out. Verify that the username and password are correct and that you can access the FTP server using another program like WinSCP or similar.

Andy

I have no problem connecting with other FTP clients. I am going to try to host the files on a different server and see if that fixes the problem. Thanks!
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I have no problem connecting with other FTP clients. I am going to try to host the files on a different server and see if that fixes the problem. Thanks!
I doubt this is your problem, but passing it along just in case. I've had one user with this problem:

Ok I think I know what's going on. When the FTP server responds to the PASV request from TTD, it's responding with the following:

Response arg: Entering Passive Mode (10,0,1,7,46,252)

This is telling TwoToneDetect to connect to an IP address of 10.0.1.7 for the passive mode data transfer. However, this is the local IP of the FTP server on its LAN, not the external facing IP address, so TTD can't connect to it for data transfer (hence the timeout error). While it appears that WinSCP and some other FTP clients must be smart enough to recognize that this is a non-routable IP address and ignore it, the Python library that I'm using doesn't do that. I hesitate to "fix" this since it's really a problem with the FTP server setup...it should be providing the external IP in the PASV response. Here's some additional info:

https://superuser.com/questions/117...lient-ignore-local-ip-address-in-passive-mode

Andy
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
557
Location
Texarkana, Arkansas
"I doubt this is your problem, but passing it along just in case. I've had one user with this problem" - Same server.

Sent from my S7 using Tapatalk.
 

webstar22

RenfrewCountyScanner.com
Premium Subscriber
Joined
Dec 21, 2003
Messages
1,037
Location
Ontario, Canada
Ok brand new install of windows 10 TTD, Proscan and Radio Scan. 3 days of running TTD crashed again. Is it because I have Python installed on the machine for scripts?
 

StCharlesScan

Newbie
Premium Subscriber
Joined
Oct 3, 2009
Messages
2
Location
St. Charles, MO
I have been running TwoToneDetect v69 for nearly a year and all of a sudden I started getting an Audio Device Error. It states, "TwoToneDetect had trouble finding or accessing an audio device on your system. You may need to plug a speaker and/or line input into your PC in order for the system to activate the audio device. TwoToneDetect will now exit."

I found a previous thread with this problem. That person plugged in headphones and it worked. No luck for me. I downloaded and installed v70, but still the same error.

I have an audio cord going from the scanner into a USB audio adapter. I tried a different audio adapter, no luck. I tried plugging the audio cord directly into the computer, no luck. Here is the error message when I try to start TwoToneDetect debug.

;Put text here that you want to appear in the title bar of the program
Successfully retrieved local tone info at 21:33:03 on 05/20/18
Successfully retrieved local tone info at 21:33:03 on 05/20/18
Tone1
Tone2
Tone3
Tone4
Tone5
Tone6
Tone7
Tone8
Tone9
Tone10
Tone11
Tone12
Tone13
Tone14
Tone15
Tone16
Traceback (most recent call last):
File "TwoToneDetect69a.py", line 1054, in <module>
File "site-packages\pyaudio.py", line 747, in open
IOError: [Errno Unanticipated host error] -9999
Successfully retrieved local tone info at 21:33:03 on 05/20/18
Tone1
Tone2
Tone3
Tone4
Tone5
Tone6
Tone7
Tone8
Tone9
Tone10
Tone11
Tone12
Tone13
Tone14
Tone15
Tone16

Any help would be greatly appreciated. Thanks.
 

KK6ZTE

Member
Premium Subscriber
Joined
Mar 27, 2016
Messages
915
Location
California
Try opening your config.cfg file in a text editor and setting your input and output device indexes both to 0.

Andy

It's an audio driver issue related to the most recent Windows 10 update. I had to roll back to the previous build of Windows 10. I tried everything I could think of installing and uninstalling drivers. Only rolling back to previous build of Windows 10 was successful.
 

jwrobot

Newbie
Joined
May 30, 2018
Messages
1
I am trying to get version 70 running on raspbian. When I try running from the console it ends in this error

"Attempt to connect to server failed.
Traceback (most recent call last):
File "TTDY70.py, linie 121, in read_config_file
File "iniparse/compat.py", line 217, in get
NoSectionError: No Section: 'Section 1'
Traceback (most recent call last):
File "TwoToneDetect70.py", line 178, in <module>
TypeError: 'NoneType' object is not iterable
[1762] Failed to execute script TwoToneDetect

Any help is greatly appreciated.
 
Top