cosax
Posts: 13
Joined: Tue Apr 30, 2013 1:18 pm

Bell sound, slow to respond

Mon Feb 23, 2015 3:09 pm

Hello everyone,

I have built a "smart bell" for my home, where at the press of the door bell button a sound is played by my pi, out of the audio jack.
My program is written in c and the command I use to play the sound is the following:

Code: Select all

system("/usr/bin/mpg123 /data/makhome/doorbell.mp3 > /dev/null");
I find the response of the bell a bit slow. It takes a second or two for the bell to be heard from the moment the button is pressed. I guess this is the time needed to start the mpg123 program and read the appropriate mp3 file.

Is there a better and faster way to do this? Any ideas/recommendations will be appriciated.

Energia
Posts: 15
Joined: Mon Oct 06, 2014 12:47 pm

Re: Bell sound, slow to respond

Wed Feb 25, 2015 1:35 am

You could try using something like mplayer.

Return to “Automation, sensing and robotics”