RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Computer Aided Monitoring and Programming > 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
  #701 (permalink)  
Old 01-01-2018, 11:59 AM
davidVT's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Aug 2010
Location: Washington County,Vermont
Posts: 87
Default

Quote:
Originally Posted by aaknitt View Post
Hi everyone,



Thanks to the efforts of DC31 and others, I've had some success building a TwoToneDetect executable file that will run on the Raspberry Pi. This executable bundles all of the Python dependencies, which greatly reduces the number of steps needed to get TTD running on a stock Pi OS image.



The instructions on the website for getting TTD running on a Pi had gotten pretty out of date, so I updated them today using the new executable files that I just posted on the site. The updated page is here:



TwoToneDetect on a Raspberry Pi | TwoToneDetect



For those running TTD on a Pi, please take a look and let me know if these instructions work for you, if there are things that are unclear, should be added, etc.



Thanks,



Andy


Andy, sounds great. I will try this evening on a clean Pi.
Question, can I just drag and drop existing tones, redundant and config files from earlier TTD versions??
Thank you


Sent from my iPad using Tapatalk
Reply With Quote
Sponsored links
  #702 (permalink)  
Old 01-01-2018, 12:04 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Aug 2005
Posts: 1,080
Default

Quote:
Originally Posted by davidVT View Post
Andy, sounds great. I will try this evening on a clean Pi.
Question, can I just drag and drop existing tones, redundant and config files from earlier TTD versions??
Thank you


Sent from my iPad using Tapatalk
Yes that should be fine, just do it after uncompressing the downloaded files to replace the generic ones that come with the package.

Andy
__________________
Using TwoToneDetect? Show us where! Add yourself to the user map here or PM me with your location and I'll add you.

If you need help with TwoToneDetect please read this post first
Reply With Quote
  #703 (permalink)  
Old 01-03-2018, 10:55 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 880
Default TTD70 Pi image

I have set up TTD70 on a pi3 and made an image that should be downloadable for those interested in trying it out on a pi. I tried to keep this image as minimal as possible to cut down on upload/download time, etc. The compressed image is 1.31 Gb so it still may take you an hour to download it. After extracting, it will be around 3.95 Gb, might fit on a 4 Gb card but definitely will fit on an 8 Gb. Username is pi, password is ttd-v70. Hostname is ttd-v70

1. Download the compressed file.

https://drive.google.com/open?id=13q...n46_iGzjUNq8al


2. Extract the tar.gz file to an .img file using 7-Zip, WinZip, or whatever works for you.

3. Image an SD card with this .img file. Etcher (from etcher.io) is a good tool for imaging cards.

4. Put the imaged card into your pi. Plug in your usb sound card. Connect an ethernet cable.

5. a. At this point you can connect an hdmi monitor and keyboard/mouse then power the pi up.
b. Alternatively, you may omit the monitor/keyboard and connect via ssh or vnc. Real VNC is running and available at ttd-v70.local:5900 on the same network.

6. TTD will load after about 30 seconds. Use the Edit Config Info button in the TTD window to set up that information. There is an icon on the desktop that can be used to edit the Tones.cfg information. Make sure that you save this information.

7. After you have made edits to these files, your best bet is to reboot the pi. (Remember that any time you make changes, other than to email addresses, TTD needs to restart to read these changes) Go to the raspberry icon at the upper left then choose Shutdown/Reboot.

One of the quirks with this setup is that Pulse Audio Volume Control needs to be running prior to starting TTD. Starting TTD by rebooting the pi takes care of this for you.

8. Features:
a. TTD autostarts on boot of the pi.
b. The pi reboots automatically daily at midnight.
c. The audio files are automatically deleted from the TTD/audio folder after two days.
d. RealVNC is enabled. this allows access to the GUI from your local network and can be set up to allow access from the internet with a RealVNC cloud account. (free and simple)
e. Runs well on wifi on a pi3.


Disclaimer: This image has not been thoroughly tested. It has been tested enough to see that it works and the common issues are taken care of. If you find other issues, post the error messages here and we can figure them out.

Let me know how it works for you if you try it.

Jim
Attached Images
 

Last edited by DC31; 01-03-2018 at 11:01 AM..
Reply With Quote
  #704 (permalink)  
Old 01-03-2018, 11:43 AM
nosoup4u's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Jan 2002
Location: Broadway, NJ
Posts: 1,892
Default

I can confirm that this image is working great! I just cut my system over from my windows system and after editing my post processing scripts, it works perfectly.
__________________
John - KC2KZZ
http://www.warrenskywarn.org
BCD536HP, BCD436HP, Home Patrol-2 , BC125AT, TRX-1 and other old crap.
@kc2kzz - My Twitter feed. @WCAlerts - Warren County Fire/EMS alerts
Reply With Quote
  #705 (permalink)  
Old 01-05-2018, 7:59 PM
ffryan76's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Nov 2004
Location: South central, In
Posts: 174
Default

Quote:
Originally Posted by DC31 View Post
2. Extract the tar.gz file to an .img file using 7-Zip, WinZip, or whatever works for you.


Jim
How to you change the tar file to an img file?
Reply With Quote
Sponsored links
  #706 (permalink)  
Old 01-05-2018, 9:48 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 880
Default

Quote:
Originally Posted by ffryan76 View Post
How to you change the tar file to an img file?
To do it from the linux command line:

https://www.interserver.net/tips/kb/...-command-line/
Reply With Quote
  #707 (permalink)  
Old 01-05-2018, 10:08 PM
ffryan76's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Nov 2004
Location: South central, In
Posts: 174
Default

I was trying to do it via windows to put it on the SD card. My mistake.

Sent from my SM-G920V using Tapatalk
Reply With Quote
  #708 (permalink)  
Old 01-08-2018, 12:50 PM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 880
Default

Quote:
Originally Posted by DC31 View Post
I have set up TTD70 on a pi3 and made an image that should be downloadable for those interested in trying it out on a pi. I tried to keep this image as minimal as possible to cut down on upload/download time, etc. The compressed image is 1.31 Gb so it still may take you an hour to download it. After extracting, it will be around 3.95 Gb, might fit on a 4 Gb card but definitely will fit on an 8 Gb. Username is pi, password is ttd-v70. Hostname is ttd-v70

1. Download the compressed file.

https://drive.google.com/open?id=13q...n46_iGzjUNq8al


2. Extract the tar.gz file to an .img file using 7-Zip, WinZip, or whatever works for you.

3. Image an SD card with this .img file. Etcher (from etcher.io) is a good tool for imaging cards.

4. Put the imaged card into your pi. Plug in your usb sound card. Connect an ethernet cable.

5. a. At this point you can connect an hdmi monitor and keyboard/mouse then power the pi up.
b. Alternatively, you may omit the monitor/keyboard and connect via ssh or vnc. Real VNC is running and available at ttd-v70.local:5900 on the same network.

6. TTD will load after about 30 seconds. Use the Edit Config Info button in the TTD window to set up that information. There is an icon on the desktop that can be used to edit the Tones.cfg information. Make sure that you save this information.

7. After you have made edits to these files, your best bet is to reboot the pi. (Remember that any time you make changes, other than to email addresses, TTD needs to restart to read these changes) Go to the raspberry icon at the upper left then choose Shutdown/Reboot.

One of the quirks with this setup is that Pulse Audio Volume Control needs to be running prior to starting TTD. Starting TTD by rebooting the pi takes care of this for you.

8. Features:
a. TTD autostarts on boot of the pi.
b. The pi reboots automatically daily at midnight.
c. The audio files are automatically deleted from the TTD/audio folder after two days.
d. RealVNC is enabled. this allows access to the GUI from your local network and can be set up to allow access from the internet with a RealVNC cloud account. (free and simple)
e. Runs well on wifi on a pi3.


Disclaimer: This image has not been thoroughly tested. It has been tested enough to see that it works and the common issues are taken care of. If you find other issues, post the error messages here and we can figure them out.

Let me know how it works for you if you try it.

Jim
The problems that you have been having were my fault. When doing the compression I used an incorrect file name. I have compressed the file again and uploaded a new version that hopefully will work better.

https://drive.google.com/open?id=1Dp...PHDjaG_17iw8ph
Reply With Quote
  #709 (permalink)  
Old 01-08-2018, 5:00 PM
ffryan76's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Nov 2004
Location: South central, In
Posts: 174
Default

Well it's about time. Just kidding.
Thank you for even coming up with this for us that have ADD for coding and have Google search deficiencies.
Reply With Quote
  #710 (permalink)  
Old 01-08-2018, 7:53 PM
ffryan76's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Nov 2004
Location: South central, In
Posts: 174
Default

Jim,

Had a issue when I loaded it into etcher. I got a notification the the image file wasn't bootable.
I did load it onto a card but it didn't run.
Attached Images
 
Reply With Quote
  #711 (permalink)  
Old 01-09-2018, 11:17 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 880
Angry

Quote:
Originally Posted by ffryan76 View Post
Jim,

Had a issue when I loaded it into etcher. I got a notification the the image file wasn't bootable.
I did load it onto a card but it didn't run.
yes, something is happening to the file during compression and upload/download. I agree, it doesn't work.
Reply With Quote
  #712 (permalink)  
Old 01-10-2018, 10:44 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2003
Location: Earth Sector 001
Posts: 778
Default

angry little Pi img file isn't it
Reply With Quote
  #713 (permalink)  
Old 01-10-2018, 10:53 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2003
Location: Earth Sector 001
Posts: 778
Default

Heh we can torrent it. :-p I'd seed it from my OVH server.
Reply With Quote
  #714 (permalink)  
Old 01-15-2018, 10:20 PM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2003
Location: Earth Sector 001
Posts: 778
Default

DC31 sent me an uncompressed img file at 2.9GB and it worked on my Pi3. So pending his approval I setup a .torrent tracker so we can send it out to everyone without killing his google drive account.
Reply With Quote
  #715 (permalink)  
Old 01-16-2018, 6:28 AM
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Feb 2011
Location: Massachusetts
Posts: 880
Default

Go for it. Good luck.
Reply With Quote
  #716 (permalink)  
Old 01-16-2018, 8:58 AM
Member
  Premium Subscriber
Premium Subscriber
 
Join Date: Dec 2003
Location: Earth Sector 001
Posts: 778
Default

Here is the .torrent file https://drive.google.com/open?id=1yT...Fzghyw3a78nUQz If no one uses it after a week I might as well take it down.
Reply With Quote
  #717 (permalink)  
Old Yesterday, 4:30 PM
ffryan76's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
 
Join Date: Nov 2004
Location: South central, In
Posts: 174
Default

Code:
Traceback (most recent call last):
  File "TwoToneDetect70.py", line 543, in alert
  File "dist-packages/pyaudio.py", line 750, in open
IOError: [Errno -9997] Invalid sample rate
338.0 2839.28949409

0
after record
delay timer NAFD Fire ST1 16:15:19 on 01/18/18
Traceback (most recent call last):
  File "TwoToneDetect70.py", line 675, in alert
UnboundLocalError: local variable 'recordstream' referenced before assignment
So, I'm stuck. I think this has everything to do with my audio setup but I can't quite fix it. I have two USB Sound cards. The first card, 0, is for TTD70. The second card I will use for streaming to broadcastify. What is the error I am getting located above?

Also, TTD70 will not execute without PAVolume being open first.

Last edited by ffryan76; Yesterday at 4:42 PM..
Reply With Quote
Reply

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 12:50 AM.


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