Sound file isn't played with a alarm event

Support and queries relating to all previous versions of ZoneMinder
Locked
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Sound file isn't played with a alarm event

Post by liviab »

Hii

I'm trying to configure ZM to play a sound when an event occurs.
I do:

ZM_DIR_SOUNDS = sounds (/var/www/html/zm/sounds)
ZM_WEB_SOUND_ON_ALARM "yes"
ZM_WEB_ALARM_SOUND = alarm.wav

ZM is works well, detection motion, "creating" events, saving image and video,... Athough, no sound is played when occurs an event.

What should I do?
:?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

are you trying to make this play from the zm box?
It is designed to play in a active camera view window ie in the browser
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

Yes...
I'm using Firefox, and it's showing in JPEG streaming without problems.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Sound file isn't played with a alarm event

Post by cordel »

liviab wrote:Hii

I'm trying to configure ZM to play a sound when an event occurs.
I do:

ZM_DIR_SOUNDS = sounds (/var/www/html/zm/sounds)
ZM_WEB_SOUND_ON_ALARM "yes"
ZM_WEB_ALARM_SOUND = alarm.wav

ZM is works well, detection motion, "creating" events, saving image and video,... Athough, no sound is played when occurs an event.

What should I do?
:?
The path for ZM_DIR_SOUNDS should be "sounds", it should be relative to the apache root, not the system.
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Re: Sound file isn't played with a alarm event

Post by liviab »

Hii cordel,

the path for ZM_DIR_SOUNDS is "sounds". I put the complete path only here to specify better.

ZM_DIR_SOUNDS = sounds
ZM_WEB_SOUND_ON_ALARM "yes"
ZM_WEB_ALARM_SOUND = alarm.wav

Do you know what can be?
:)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

One of three things it can be:
:arrow: Bad wav file.
:arrow: Permissions error of some type, either file system or Apache. Could be a bad config as well.
:arrow: Browser don't support playing sounds and requires a plug-in that you don't have installed.
rustle
Posts: 3
Joined: Wed Apr 28, 2010 1:42 am

Post by rustle »

I was able to enable the alarm sounds by adding the wave file to ( Var/www/sounds )

And adding www-data to the audio group. In Ubuntu ' Sudo adduser www-data audio ' This allows Zoneminder access to the sound card.
Locked