ApatheticDELL / QuantumENDEC

The latest edition of QuantumENDEC. A Canadian Emergency Alerting software ENDEC, it converts Pelmorex's CAP XML files into S.A.M.E encoded alerts.
GNU General Public License v3.0
5 stars 3 forks source link

The audio monitor does not play alert audio, and TTS is played instead #2

Open RiverYT opened 2 weeks ago

RiverYT commented 2 weeks ago

Any Audio from a physical monitor will be played as the tts and not the nws alert, amber alert, etc

ApatheticDELL commented 1 week ago

The code for the audio monitor is kinda sloppy in QuantumENDEC.

This issue in particular could occur if...

In the SAME monitor stage:

In the Generation stage, TTS will be generated if:

Now, this could be the potentially problematic code in the RemoveEOMpATTN function... {BDDB3BE8-1837-44B8-B04C-FB419B4CFD27}

After it removes the EOM headers and the (EBS) attention tone, it will try to overwrite the input alert audio by deleting the original file first, and then exporting the new alert audio. I think the export process might be failing after the original audio has been removed, so there ends up being no alert audio, and it will generate TTS instead.

Now this isn't that of a big deal, but if this issue happens and TTS ends up bing generated, important alert information could be missing. I might be able to fix this, but do note that if the same issue happens after the fix, there could be long attention tones and a few too many EOM headers.