Can someone host a finished, stable, image file? I've run through the setup 3 times with a couple different sound cards and its never stable. Either the program freezes after a couple days with no error or it fails to load from a psaudio error. List the sound card and I'll get it.
Are your audio input and output devices set similar to this:had a call and everything worked but when got home it had an error just after sending the text.
Expression 'alsa_snd_pcm_poll_descriptors_revents( self->pcm, pfds, self->nfds, &revents )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3659
Expression 'PaAlsaStreamComponent_EndPolling( &self->capture, capturePfds, &pollCapture, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3876
Expression 'PaAlsaStream_WaitForFrames( stream, &framesAvail, &xrun )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4423
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1545, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 595, in callit
func(*args)
File "TwoToneDetect70.py", line 1054, in start
File "TwoToneDetect70.py", line 1029, in record
File "/usr/lib/python2.7/dist-packages/pyaudio.py", line 608, in read
return pa.read_stream(self._stream, num_frames, exception_on_overflow)
IOError: [Errno -9999] Unanticipated host error
@squirrel
http://forums.radioreference.com/th...rks-python-based.216758/page-196#post-3053017
you need to autostart pavucontrol and then autostart TTD when the pi boots.
Do this by creating a sub-directory titled autostart in the /home/pi/.config directory on your pi.
Then place the two attached files in the autostart directory and change the .txt to .desktop. (pulseaudio.desktop...)
You may need to edit the twotonedetect.desktop file to point to the correct directory and the correct file name on your pi.
Hello All,
I have been running TTD on a windows machine for several years now with no issues. The hardware is finally giving up so I dusted off the RPi 3 B I purchased a few years ago and headed out to replace my windows box. I was excited to see that there was a new version out and a specific version for the Pi. I followed Andy's instructions off the TTD website and I have it up and running. My problem is that it is not stable. It will run for 2 to 5 days fine and then just quit receiving audio. I have read through a lot of this thread and I think I have gathered that this is "normal" and so I need to setup the Pi to reboot every X (daily, 3 days, something) to compensate for this. I went back in the thread to post 703 where DC31 (Jim I believe) posted a Pi image running TTD70 with most of the things needed taken care of like reboot, autostart, audio file cleanup, etc. I downloaded that image this evening, but i have not done anything with it. Reading further I see that there was some problems with that and it needed to be fixed and then hosted on torrent and so I don't know if that image is any good. So question #1, is that a good image or no??
Moving on down the thread I see where Jim later posts about the image getting to big to share and posting a procedure similar to what is on the TTD website. In Jim's directions in post 781 and dependencies in 786 he references using the windows version of TTD on the Pi. Question #2, is this the preferred method and more stable than the pi version of TTD??
My 1st goal is to get a stable system back up and running for alerting.
My 2nd goal would be to get the push alerts and hosted tones.cfg and a redundant setup up and functioning.
I want to say thanks to everyone who has shared on this thread. I think all the pieces I need are here, I am just having a hard time putting them all together in one place so I can get up and running.
Jeremy
Thanks for the files. I was able to get pulseaudio to autostart, but have not been successful with getting TTD to start. I have verified the path and file name are correct. Not sure what I am missing? It also appears my TwoToneDetect70 has no extension.
That's a good point. I use FireZilla to ftp files to/from this server all the time, and it's configured with www.mydomain.org rather than ftp.mydomain.org. But I suppose it's possible that the ftp integration in TTD would behave differently. I'll give that a shot. Thanks.The ones that I have seen start ftp.mydomain.org. [...] You may need to research with your domain provider the proper address of the ftp server.
I'm having trouble getting TTD to upload mp3 files to the specified directory on my web server. I'm sure it's something simple, but I can't seem to figure it out. Does anyone else do this successfully?
Here are the settings that I currently have in TTD's config.cfg file:
- FTP Server: www.mydomain.org/
- FTP Port: 21
- FTP Username: me@mydomain.org
- FTP Password: *********
- Hyperlink Prefix: http://www.mydomain.org/audio/
The goal, obviously, is to have the file uploaded into the /audio directory. The mp3 file uploads fine, but ends up in the root directory of my user account. By root directory, I mean the actual root directory of the user, not the public_html (or www) directory. What am I missing that is resulting in the file being in the root directory instead of the /audio directory?
Frank
Ah-ha! Thank you very much, Andy -- it's good to know that it isn't a config problem on my end.The built-in FTP upload function doesn't currently support uploading to anywhere except the root directory...