Page 1 of 1

Sound file isn't played with a alarm event

Posted: Wed Oct 15, 2008 7:33 pm
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?
:?

Posted: Wed Oct 15, 2008 10:42 pm
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

Posted: Wed Oct 15, 2008 10:47 pm
by liviab
Yes...
I'm using Firefox, and it's showing in JPEG streaming without problems.

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

Posted: Thu Oct 16, 2008 2:01 am
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.

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

Posted: Thu Oct 16, 2008 10:55 am
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?
:)

Posted: Thu Oct 16, 2008 11:37 am
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.

Posted: Wed Apr 28, 2010 1:49 am
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.