Mason10198 / SkywarnPlus

Empowering Asterisk / app_rpt Nodes with Local Alert Intelligence
GNU General Public License v3.0
45 stars 3 forks source link

Noisy/corrupt tail message created #81

Closed blu666z closed 4 months ago

blu666z commented 4 months ago

I have two nodes which have created a very noisy/corrupt tail message for a Winter Storm Warning which is active for my county. Two days again, I had tail messages created correctly for a Dense Fog Advisory, so I believe my installation is correct. I was not monitoring the node when the initial Broadcast was played to know if that sounded correct.

This is an installation on a HamVoip node.

I have attached my config file, current data.json, and created wx-tail.ulaw.

Thanks for any guidance.

-Kevin (KE7K)

wx-tail.zip

Mason10198 commented 4 months ago

It looks like you changed the tailmessage file extension to .ulaw in your config.yaml, which is causing the issue.

Please change:

  # Specify an alternative path and filename for saving the tail message.
  # Default is /tmp/SkywarnPlus/wx-tail.wav.
  TailmessagePath: /tmp/SkywarnPlus/wx-tail.ulaw

Back to:

  # Specify an alternative path and filename for saving the tail message.
  # Default is /tmp/SkywarnPlus/wx-tail.wav.
  TailmessagePath: /tmp/SkywarnPlus/wx-tail.wav

and also make the change in your rpt.conf.

blu666z commented 4 months ago

I was having an issue with the tail message not playing at all when it was .wav and was told by K4FXC, the curator of HamVoip, that the tail message code would not handle .wav files and it needed to be ulaw.

"The tailmessage code won't play a .wav file. It must be converted to one of the raw/binary formats. For example, I use ulaw files. To convert a .wav to .ul:"

I'll play around with it some more. Thanks for your quick response.

-Kevin

Mason10198 commented 4 months ago

That is not correct at all. Asterisk/app_rpt perfectly handles the .wav files created by SWP on all distributions, HamVoIP included. There are many HamVoIP systems currently running SkywarnPlus with tailmessages enabled.

Even if the file did need to be converted, you cannot simply change the extension in the configuration file, as that will only change the file name and not the actual encoding of the data in the file, which would require changing the SkywarnPlus source code.

blu666z commented 4 months ago

Understood. Thanks again Mason. Feel free to close this.

Mason10198 commented 4 months ago

No worries. If you still have issues with the .wav file playing, try playing the file manually from the Asterisk console (asterisk -rvvv) and watch for errors. Come back here if you need help.