TwoToneDetect New TwoToneDetect in the works - Python based

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
I'm having trouble with my TTD set up on my RPI 3 model b. I'm trying to send an admin email through the config page and I keep getting email send error..<class.smtplib.smtpexception> SMTP auth extension not supported by server.
I've put in my correct email settings.. Even read that the email PW needed to be converted over to 64 encoding... I've checked and unchecked email authentication... Picked from all three email security settings and all three send emails sequentially options.. Still nothing... What am I missing??
If it is Gmail you may need a new app specific password.

Sent from my SM-T550 using Tapatalk
 

BlueIce

Member
Joined
Sep 5, 2009
Messages
18
Location
Minneapolis Area
Analyzing a wav file for two tone paging.

After trying to read through 175 pages of the thread it's almost impossible. It is the top hit during a search of several combinations. Currently, I have thousands of wav files and wanting to automate a scan (linux) of the files to determine the following:

1) Is there a two tone (A-B) within the file (beginning [most of the time],middle or end of file)?
2) If Yes, What are the tones (A-B)?
3) Do the tones match a list of acceptable tones for an agency?
4) Amend a JSON file or any file for that mater with the findings (Yes/No, Tone A, Tone B, Agency).

After the scan is done of the current files, I would ideally like to scan additional files on a per file basis.

I'm not sure if TwoToneDetect can provide this with the python script. At this time I don't have a need to do all the functions of TwoToneDetect for this project, however maybe in the feature. For instance, at this time, I don't need TwoToneDetect to archive audio from a page and send it off to email or the need to have a graphical interface while utilizing a dedicated radio.

If this is not possible with TwoToneDetect could you please direct me to another program that may provide these features. Everyone's assistance is much appreciated.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
After trying to read through 175 pages of the thread it's almost impossible. It is the top hit during a search of several combinations. Currently, I have thousands of wav files and wanting to automate a scan (linux) of the files to determine the following:

1) Is there a two tone (A-B) within the file (beginning [most of the time],middle or end of file)?
2) If Yes, What are the tones (A-B)?
3) Do the tones match a list of acceptable tones for an agency?
4) Amend a JSON file or any file for that mater with the findings (Yes/No, Tone A, Tone B, Agency).

After the scan is done of the current files, I would ideally like to scan additional files on a per file basis.

I'm not sure if TwoToneDetect can provide this with the python script. At this time I don't have a need to do all the functions of TwoToneDetect for this project, however maybe in the feature. For instance, at this time, I don't need TwoToneDetect to archive audio from a page and send it off to email or the need to have a graphical interface while utilizing a dedicated radio.

If this is not possible with TwoToneDetect could you please direct me to another program that may provide these features. Everyone's assistance is much appreciated.

There is a sister program called TwoToneFinder that does much of what you are looking for. Look it up on Andy's website TwoToneDetect. There is a python version which runs well on Linux. With some tweaking I think that you could use it. For example you would have to pipe the audio in from your .wav files as the audio input to the program, etc. I have run TTF using a radio reference audio stream piped into the program.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I have run TTF using a radio reference audio stream piped into the program.

I think there are a lot of people that would be interested in knowing the specifics of how you did this...I've had lots of requests to run TTD from an online stream.

We're not all Linux gurus like you Jim :p
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Using a stream as the audio source for TTD.

I am sorry, but I only know how to do it on a Raspberry Pi. And the one that I use runs UbuntuMate so that isn't even really mainstream RPi. Although I think it would run on the standard Raspbian version just as well. I will do a quick description here and then maybe some of you real Linux gurus can take it from there. Andy gives me waaaaaaaay too much credit. I only know what I have learned from him (and maybe a little from my son.) I am just good at finding solutions using Google.

The outline of how to use a stream as the source came from davidVT who also is a source of much knowledge and who has shared it with me.

https://forums.radioreference.com/s...446-two-tone-detect-pi3-using-ubuntumate.html

First, use Google Chrome to open the broadcastify web page and start the stream that you are interested in. With the stream running go to view/developer/view source in the menu bar. This will open a page of html code. Find the url of the stream about halfway down the page. It will look like:

http://relay.broadcastify.com:80/ma_boston_fire.mp3?xan=4BB2D6460D0E585C9BEECCFE47F1F59C

Copy that url and paste it into a text document somewhere so that you can save it. Then close Chrome.


Start PulseAudio Volume Control on the pi. Click on the Playback Tab

Start a Terminal Window (Applications/System Tools/MATE Terminal)

Install mplayer (sudo apt-get install mplayer) (This only needs to be done once)

Start the audio stream in the Terminal Window at the command line using the url that your found above:

mplayer http://relay.broadcastify.com/ma_boston_fire.mp3?xan=4BB2D6460D0E585C9BEECCFE47F1F59C

You will see mplayer pop up in the playback tab of pavucontrol. Make sure that it is playing on the ALSA device. Now click on the Recording tab.

Start TwoToneDetect (or TwoToneFinder as the case may be) This will cause an ALSA plug-in to pop up in the Recording tab. Make sure that it is recording from the Monitor of ALSA device.

Then select pulse as the Audio Input Device in the TwoToneDetect window.

You may need to adjust the volume in the pavucontrol window and the squelch in the TTD window to get it working properly.
 
Last edited:

BigRedBox80

Member
Feed Provider
Joined
Apr 23, 2015
Messages
170
I tried searching a bit but didn't see an answer.

Me and my end users are getting two lines of the same text which I assume are a "subject" and a "body".

My body is set to "Please reply STOP to end these messages" but I'm still seeing the page received twice, how can I stop this?
 

Attachments

  • 2017-04-03 21.24.40.jpg
    2017-04-03 21.24.40.jpg
    25 KB · Views: 316

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
I finally got TTD to recognize the audio file and send out a notification to my phone of the audio file on the Ubuntu mate image.... But when I hook up the scanner into the mic in and turn to the volumes and turn the squelch all the way down to see if TTD picks up the squelch audio but it doesn't... Do I need to get another sound card with line in or what am I missing? I'm banging my head on the wall here

Sent from my Nexus 6P using Tapatalk
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,305
I tried searching a bit but didn't see an answer.

Me and my end users are getting two lines of the same text which I assume are a "subject" and a "body".

My body is set to "Please reply STOP to end these messages" but I'm still seeing the page received twice, how can I stop this?

Removing the "page received" text from the body is not currently possible. I'll add that to the request list for the next release version.

Andy
 

zman9119

Member
Joined
Jun 30, 2003
Messages
19
Location
IL
I think there are a lot of people that would be interested in knowing the specifics of how you did this...I've had lots of requests to run TTD from an online stream.

On a Windows machine it is fairly easy too. Just have the stream through VLC with auto stream loss restart, TTD (debug mode to visually check items) running, along with Xcoder.

Have a scheduled task to kill the stream once a day overnight via bat script, then restart 5 seconds later. Do the same with TTD, but only once a week to clear the logs out. Xcoder is pretty much left the same.


Have been doing this with XP, Win 8 and Win 10 machines for the past few years, then have done virtual machines doing the same too with VAC on them so they, in reality, can be hosted anywhere (AWS, GCC, etc).
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
I finally got TTD to recognize the audio file and send out a notification to my phone of the audio file on the Ubuntu mate image.... But when I hook up the scanner into the mic in and turn to the volumes and turn the squelch all the way down to see if TTD picks up the squelch audio but it doesn't... Do I need to get another sound card with line in or what am I missing? I'm banging my head on the wall here

Sent from my Nexus 6P using Tapatalk

Go through the tabs in pulseaudio volume control and make sure that you have TTD listening to the usb sound card.

A screen shot of what your Recording Tab looks like might help
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
Go through the tabs in pulseaudio volume control and make sure that you have TTD listening to the usb sound card.

A screen shot of what your Recording Tab looks like might help
Here you go
0877de6bf772ccc2c307d46e5ccf7f13.jpg
fc8579757305f5facc17e53bc8986ae6.jpg


Sent from my Nexus 6P using Tapatalk
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
Truckie:

Your setup is identical to mine so you are on the right track. If you grab the audio squelch slider in the TTD window and drag it all the way to the left, do you see numbers at Tone Freq:?

You have your pulseaudio volume just about maxed out so I am surprised that you aren't getting anything. Do you have the volume on the scanner turned up? Have you confirmed the audio output of the scanner? Plug earbuds or something into the scanner jack. When you break squelch on the scanner, you should see the audio input level bar change dramatically. Make sure that both ends of the audio cable are firmly inserted and into the correct jacks on scanner and sound card. I don't think you need a different sound card.

Your audio input level bar shows about 50% in the image, so it is hearing something. Maybe just noise. Does your sound card have an earphone jack that you can plug into to listen?
 

truckie27

Member
Joined
Dec 1, 2010
Messages
49
Location
Metropolis, IL
Truckie:

Your setup is identical to mine so you are on the right track. If you grab the audio squelch slider in the TTD window and drag it all the way to the left, do you see numbers at Tone Freq:?

You have your pulseaudio volume just about maxed out so I am surprised that you aren't getting anything. Do you have the volume on the scanner turned up? Have you confirmed the audio output of the scanner? Plug earbuds or something into the scanner jack. When you break squelch on the scanner, you should see the audio input level bar change dramatically. Make sure that both ends of the audio cable are firmly inserted and into the correct jacks on scanner and sound card. I don't think you need a different sound card.

Your audio input level bar shows about 50% in the image, so it is hearing something. Maybe just noise. Does your sound card have an earphone jack that you can plug into to listen?
When I move the slider bar it sees the frequencies.. But when I turn the squelch down and open it up it does not see the same jump in freq's. I'll try to hook up my headphones to the same sound card in using...I wasn't sure that since it was mic in and audio out of that was an issue or not.

Sent from my Nexus 6P using Tapatalk
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,585
Location
Massachusetts
When I move the slider bar it sees the frequencies.. But when I turn the squelch down and open it up it does not see the same jump in freq's. I'll try to hook up my headphones to the same sound card in using...I wasn't sure that since it was mic in and audio out of that was an issue or not.

Sent from my Nexus 6P using Tapatalk

Okay, so TTD is hearing audio. You are real close now, just a matter of getting the audio set right. Every setup is different in that regard and mostly trial and error.
 

MikeOrlando02

Member
Joined
Oct 8, 2015
Messages
97
This should be addressed now. Try logging in under your admin account, and you should be able to edit this setting.



I realized that when I rebuilt v69 for the final time, I neglected to also rebuild the ftpuploader program with the same settings. I did that tonight and reposted the v69 package. Try downloading this version and see if that takes care of the DLL error.

Andy

Thanks Andy!

I see the option in my admin panel. With the updated ftpuploader I am able to upload via command line so I updated my tones config and will see what happens. Other than Norton AntiVirus not liking it and deleting it immediately this seems to be fixed.
 

Attachments

  • Capture.JPG
    Capture.JPG
    50.3 KB · Views: 280
Top