TwoTone Issues Help!!!
So Ive been having glitches in my Version 60 TwoTone Detect. I will copy and paste what its doing after I explain. I have Multiple stations programmed into the tones file, ive checked and double checked to make sure everything is set before I ran the program. Whats happening is when a fire district gets toned out there are 2 sets of tones for 2 stations. The program sees the tones, acknowledges both sets of tones with the immediate text. But only 1 station is getting the audio file. Currently 6 separate tones are programmed into TwoTone which are all being sent to myself right now. I originally though it was an MP3 problem but it didn't make sense that the majority of the other stations were sending just fine. So I ran the Debug program for a day to see what was happening. In doing so I also changed to all stations send AMR instead of MP3. Same thing happened for the same stations and the other stations sent just fine.
Below is the beginning set of the two tones-
In an effort to keep this short I deleted most of the audio post but the set of stations was one after another then the audio-
252.0 32534
1677.0 1175
1344.0 1613
709.0 30514
709.0 30614
709.0 32049
709.0 32037
709.0 32065
709.0 31939
1215.0 25302
1215.0 26763
1215.0 27521
Station 189 Alert Tone Set Found
Succesfully retrieved local tone info
Tone1
Tone2
Tonn3
Tone4
Tone5
Tone61215.0 27808
delay timer Station 189 Alert 18:02:15 on 12/29/14
0.0
delay done Station 189 Alert 18:02:16 on 12/29/14
waiting for audio Station 189 Alert 18:02:16 on 12/29/14
threshold value: 64.0
starting record at 18:02:16 on 12/29/14
1215.0 27834
done recording at 18:02:16 on 12/29/14
6060 max level at 18:02:16 on 12/29/14
threshold exceeded
recording audio Station 189 Alert 18:02:16 on 12/29/14
1215.0 7178
2075.0 297
1817.0 352
1984.0 323
2306.0 306
2059.0 398
Text Email sent! Station 189 Alert Page Received at 18:02:15 on 12/29/14 18:02:19 on 12/29/14
2081.0 690
817.0 31541
817.0 31876
1285.0 31166
1285.0 27444
1285.0 28199
Station 277 Alert Tone Set Found
Traceback (most recent call last):
File "<string>", line 476, in alert
File "C:\Users\Deer Creek Fire Dept\Documents\Python\build\pyi.win32\TwoToneDetect60_debug\outPYZ1.pyz/pyaudio", line 747, in open
IOError: [Errno Device unavailable] -9985
Succesfully retrieved local tone info
Tone1
Tone2
Tonn3
Tone41279.0 32170
Tone5
Tone6
delay timer Station 277 Alert 18:02:22 on 12/29/14
Traceback (most recent call last):
File "<string>", line 549, in alert
UnboundLocalError: local variable 'recordstream' referenced before assignment
WHAT IS THIS??? IVE NEVER SEEN DEER CREEK FIRE DEPARTMENT BEFORE AND ITS NOT THE STATION THATS BEEN ALERTED
1285.0 31680
1285.0 27445
1285.0 28012
1285.0 27502
1285.0 24257
1285.0 21583
1285.0 18618
1285.0 16437
1285.0 14560
1285.0 12422
1285.0 11043
1285.0 9488
Text Email sent! Station 277 Alert Page Received at 18:02:22 on 12/29/14 18:02:25 on 12/29/14
1285.0 10568
2479.0 1272
Waiting for Silence Station 189 Alert 18:02:44 on 12/29/14
387.0 2154
263.0 139
252.0 132
Done recording Station 189 Alert 18:02:50 on 12/29/14
done writing WAV Station 189 Alert 18:02:50 on 12/29/14
done converting to AMR Station 189 Alert 18:02:53 on 12/29/14
AMR Email sent! Station 189 Alert Page Received at 18:02:53 on 12/29/14 18:02:55 on 12/29/14
That was the end of the set. Station 189 worked fine but station 277 has an issue. It gets the immediate text like all the other stations but the audio is never recorded and never sent. The tones format is a copy and paste for all 6 stations with the changes in the freq. But station that has never worked since I put it in. Now there was another station that did this briefly once but it has seemed to work fine majority of the time... HELP!!!