TwoToneDetect New TwoToneDetect in the works - Python based

kc8oye

Member
Joined
Aug 10, 2013
Messages
4
Bug Report... maybe?

I am running windows XP Pro, SP3

I have two sound cards. My on-board SigmaTel Audio, and my add on PCI Soundblaster Audigy

regardless of which soundcard, or even the sound mapper, input I select, the program can not hear and audio from either card.

When I change my 'default record device' in my control panel to the audigy (it was on the sigmatel) the program could hear audio by soundmapper or Audigy, or the sigmatel

It appears regardless of what input I tell it to use, it will use only the default recording device...
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
I am running windows XP Pro, SP3

I have two sound cards. My on-board SigmaTel Audio, and my add on PCI Soundblaster Audigy

regardless of which soundcard, or even the sound mapper, input I select, the program can not hear and audio from either card.

When I change my 'default record device' in my control panel to the audigy (it was on the sigmatel) the program could hear audio by soundmapper or Audigy, or the sigmatel

It appears regardless of what input I tell it to use, it will use only the default recording device...

Are you restarting the program each time you select a different audio source? If not, give that a try and see if it helps.

Andy
 

kc8oye

Member
Joined
Aug 10, 2013
Messages
4
Every time I restart it, it defaults to the Microsoft Sound Mapper, regardless of which source I had selected.


Are you restarting the program each time you select a different audio source? If not, give that a try and see if it helps.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
Every time I restart it, it defaults to the Microsoft Sound Mapper, regardless of which source I had selected.

Do you have admin or write access to the folder that TTD is in? It sounds like changes to the config.cfg file aren't being saved.

Andy
 

KLH

Member
Feed Provider
Joined
Dec 10, 2005
Messages
353
Location
Indiana
kc8oye, I have ALWAYS had the same problem as you. I just set the default sound card in the control panel and forget about it since the program is running on a semi dedicated computer.
 

kc8oye

Member
Joined
Aug 10, 2013
Messages
4
Yes, I am admin on this machine.

I wish I could just do this and forget about it. but I have two sound cards in this computer with good reason, I can't afford to dedicate either one to any one project.


kc8oye, I have ALWAYS had the same problem as you. I just set the default sound card in the control panel and forget about it since the program is running on a semi dedicated computer.
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
Yes, I am admin on this machine.

I wish I could just do this and forget about it. but I have two sound cards in this computer with good reason, I can't afford to dedicate either one to any one project.

Even if you're admin, Windows 7 doesn't allow write access to some directories (like program files) without taking special action. Have you tried putting the TTD folder on the desktop and running from there? That's usually a safe bet.

Andy
 

jhsands

Member
Feed Provider
Joined
Sep 6, 2006
Messages
561
Location
Texarkana, Arkansas
Even if you're admin, Windows 7 doesn't allow write access to some directories (like program files) without taking special action. Have you tried putting the TTD folder on the desktop and running from there? That's usually a safe bet.

Andy

kc8oye

I think it's safe to disable UAC. Ive run windows 6.x + for years and found the only thing it stops is legitimate programs (java update scheduler anyone?). All the computers I work on that get viruses have UAC on.

obviously, that's just my opinion and you do so at your own risk.
 

kc2kvy

Member
Premium Subscriber
Joined
Feb 2, 2007
Messages
96
I tried searching the thread & came up blank so I'll ask (please point me to a reply if it was already mentioned)....

Any hopes of getting something like this for us Mac users? I'd LOVE to be able to use this on the computer since I already have it running my scanner feed and not need to hook a scanner up to my Windows laptop and keep that running 24/7. I could also run a Windows clone but I've done it on previous computers and don't want to add it on this one so that's out....

I've had some success running TTD on a mac using Wine. Check that out.
 

davidVT

Member
Joined
Aug 29, 2010
Messages
138
Location
Washington County,Vermont
I would suggest using a $35 raspberry PI rather than your mac. These are starting to go into production environments/usage with TTDpi for some folks!
 
Last edited:

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
Tutorial Videos

Hi everyone,

Over the last couple of weeks I've been getting an increasing number of emails from people brand new to TTD who are struggling to get it up and running. I'd really like to make some detailed step-by-step tutorial videos to help these people out, but I just don't have the time to sit down and do it right now. It will probably be a couple months before I do (fire department building project underway right now). If anyone has the time and would like to tackle this, it would help a lot of people out. VE3NSV made a video some time ago but the program has changed quite a bit since that video was made so it's kind of dated. Here are some videos I think would be helpful:

1) Step by step setup video. This would start from downloading the program, go through unzipping it, downloading and unzipping ffmpeg, selecting the sound card, attaching the scanner, setting the levels, editing config and tone info.
2) Finding unknown tones video. Using audacity or some other method
3) Testing TTD video. Using an andoid or iphone app or another computer as the audio source.

If you make a video let me know and I'll link to it on the program page.

Thanks,

Andy
 

smyers119

Member
Joined
Jul 8, 2012
Messages
7
Location
New Jersey
Rasberrypi Error message once a wekk

I get this error about once a week on my rasberry pi running 60a.
"
Expression 'framesAvail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3563
Expression 'PaAlsaStreamComponent_GetAvailableFrames( &self->capture, &captureFrames, xrunOccurred )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3642
Expression 'PaAlsaStream_GetAvailableFrames( self, self->capture.pcm != NULL, self->playback.pcm != NULL, framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3702
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4338
Traceback (most recent call last):
File "TwoToneDetect60aPi.py", line 707, in <module>
File "TwoToneDetect60aPi.py", line 696, in record
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 605, in read
return pa.read_stream(self._stream, num_frames)
IOError: [Errno Unanticipated host error] -9999
"

Any suggestions?

Thanks,

Steve
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
I get this error about once a week on my rasberry pi running 60a.
"
Expression 'framesAvail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3563
Expression 'PaAlsaStreamComponent_GetAvailableFrames( &self->capture, &captureFrames, xrunOccurred )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3642
Expression 'PaAlsaStream_GetAvailableFrames( self, self->capture.pcm != NULL, self->playback.pcm != NULL, framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3702
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4338
Traceback (most recent call last):
File "TwoToneDetect60aPi.py", line 707, in <module>
File "TwoToneDetect60aPi.py", line 696, in record
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 605, in read
return pa.read_stream(self._stream, num_frames)
IOError: [Errno Unanticipated host error] -9999
"

Any suggestions?

Thanks,

Steve

Steve,

I haven't seen that error before. Looks like it's having trouble with teh audio input for some reason. Are you rebooting the Pi nightly or just letting it run? I do a nightly reboot and haven't had any issues.

Andy
 

smyers119

Member
Joined
Jul 8, 2012
Messages
7
Location
New Jersey
Andy, I do not do nightly reboots but that probably would solve the problem...do you have a start-up script for automatically starting TwoTone again? if not it's no problem...I will figure it out.


Thanks,

Steve


Steve,

I haven't seen that error before. Looks like it's having trouble with teh audio input for some reason. Are you rebooting the Pi nightly or just letting it run? I do a nightly reboot and haven't had any issues.

Andy
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
Andy, I do not do nightly reboots but that probably would solve the problem...do you have a start-up script for automatically starting TwoTone again? if not it's no problem...I will figure it out.

This is the script (startTTD.sh) that I use to start TTD:
Code:
#!/bin/bash
cd /home/pi/TTD/Pi/
python TwoToneDetect63Pi.py

That script gets called from this crontab entry ( crontab -e )
Code:
@reboot screen -dmS ttd-screen /home/pi/TTD/Pi/startTTD.sh

I have also have another crontab entry to start darkice for audio streaming:
Code:
@reboot /bin/sleep 120 ; screen -dmS darkice-screen darkice
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,620
Location
Massachusetts
Steve,

I haven't seen that error before. Looks like it's having trouble with teh audio input for some reason. Are you rebooting the Pi nightly or just letting it run? I do a nightly reboot and haven't had any issues.

Andy

My pi's have run for weeks on end with no reboot, and i have never seen this error message.

Steve, is there any chance that you are running a wireless adapter to your ethernet? I ran a Model A pi that way for a while and experienced periodic crashes.

Jim
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
I get this error about once a week on my rasberry pi running 60a.
"
Expression 'framesAvail' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3563
Expression 'PaAlsaStreamComponent_GetAvailableFrames( &self->capture, &captureFrames, xrunOccurred )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3642
Expression 'PaAlsaStream_GetAvailableFrames( self, self->capture.pcm != NULL, self->playback.pcm != NULL, framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3702
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4338
Traceback (most recent call last):
File "TwoToneDetect60aPi.py", line 707, in <module>
File "TwoToneDetect60aPi.py", line 696, in record
File "/usr/local/lib/python2.7/dist-packages/pyaudio.py", line 605, in read
return pa.read_stream(self._stream, num_frames)
IOError: [Errno Unanticipated host error] -9999
"

Any suggestions?

Thanks,

Steve

Also, what kind of USB sound card are you using? I did have a more expensive SoundBlaster device that the Pi didn't seem to like very well. The super cheap eBay ones seem to work well though.

Andy
 

ffryan76

Member
Feed Provider
Joined
Nov 28, 2004
Messages
175
Location
South central, In
I have a idea for the remote editor and the program editor. Can you add a option to send notification text to the listed email/text incase you need to notify everyone the TTD program may be down ?
 

brian79z

Member
Joined
Sep 19, 2010
Messages
21
Trying to upgrade from TTD56 to TTD63. Same computer is the goal.
Programmed in tones for TTD63 on another computer, then transferred folder to the main computer.

On both computers, when I try to open TTD63, nothing happens. On the debug, the DOS screen pops up, then disappears. I happened to get a screen grab before it went the last time.

It looks like it is sticking on the LOG file?
 

Attachments

  • ttd63ugh.jpg
    ttd63ugh.jpg
    73.3 KB · Views: 281

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,309
Trying to upgrade from TTD56 to TTD63. Same computer is the goal.
Programmed in tones for TTD63 on another computer, then transferred folder to the main computer.

On both computers, when I try to open TTD63, nothing happens. On the debug, the DOS screen pops up, then disappears. I happened to get a screen grab before it went the last time.

It looks like it is sticking on the LOG file?

It looks like it can't find a sound card to use. If you're copying over the config.cfg file from a different computer that might cause some issues. You might want to manually set the input and output devices to 0 by editing config.cfg with a text editor. Also if it's a newer computer you may need to have a cord plugged into the audio input in order for it to recognize the sound card. Finally, you can always check the log.txt file for errors even if you're not using the debug version.

Andy
 
Top