I have written a chat applicaiton(via terminal) using ruby 1.8.7 and i want
to produce a bell sound or any sound in terminal whenever i receive a msg
from chatting person.
I tried to use 'espeak' but i get the following messages in terminal which
gets displayed in between the chats and totally messing up things.

ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib audio/pcm_bluetooth.c:1613:(audioservice_expect)
BT_GET_CAPABILITIES failed : Input/output error(5)
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started


I dont want these to be displayed in terminal and i wanted this to redirect
to some file.

I tried this command:


# espeak hi > temp

but again the message appears in terminal

If this can't be done is there any way to produce sound in ruby either by
using gem or using system commands?
Thanks in advance

-- 
Regards,
Prasanna Venkadesh
----------------------------------------------------------------------------
PuduvaiLUG (puduvai Linux Users Group): http://puduvailug.wordpress.com/

FOSS Jobs all over India: http://fossjobs.in
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to