[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
Linux, Auditory Icons, es1370 sound card
- To: emacspeak@xxxxxxxxxxx
- Subject: Linux, Auditory Icons, es1370 sound card
- From: Tim Cross <tcross@xxxxxxxxxxx>
- Date: Mon, 3 May 1999 15:01:18 +1000 (EST)
- Old-Return-Path: <tcross@xxxxxxxxxxx>
- Resent-Date: Mon, 3 May 1999 00:58:39 -0400 (EDT)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <"3PcKp.A.0JB.2zSL3"@hub>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
Thought I should point out a possible problem some users may have with
using auditory icons under linux with an es1370 sound card. This card
does not support sound files in *.au format. This means you cannot
play *.au files by cating them to /dev/audio, which is what the
emacspeak play program does. This means the auditory icons won't work
if you are running a sound card which uses the es1370 driver.
The solution is to use the sox utility to convert the files to ossdsp
format. I have modified the emacspeak play program to use the sox
utility which can do the conversion. I've included the modified script
at the end of this file. Please note that any problems, mistakes,
criticisms, flames etc for this modified version of the script should
be sent to me and not Raman as I'm responsible for the modifications.
I'm running RedHat 5.2 and have the sox.12.14-2 rpm installed. You
need sox installed to run the modified script.
Tim
#!/bin/sh
#$Id: play.def,v 10.0 1999/04/30 17:36:56 raman Exp $
#$Author: raman $
#Description: Play a sound on /dev/audio or /dev/dsp
#/dev/audio for 8k ulaw files
#/dev/dsp for 11.025K wave files
#Keywords: Play sounds, emacspeak
# {{{ LCD Entry:
# LCD Archive Entry:
# emacspeak| T. V. Raman |raman@xxxxxxxxxxx
# A speech interface to Emacs |
# $date: $ |
# $Revision: 10.0 $ |
# Location undetermined
#
# MODIFIED 1999/05/03
# I modified the original script so that it would play *.au files under
# linux when using a sound card which does not support au file format.
# (e.g. es1370 based cards). The script uses the sox utility to convert
# the file into wave format and plays it through /dev/dsp. Blame me and
# not Raman if this doesn't work for you. Tim Cross
# Email flames to tcross@xxxxxxxxxxx
# }}}
# {{{ Copyright:
# Copyright (c) 1994, 1995 by Digital Equipment Corporation.
# All Rights Reserved.
#
# This file is not part of GNU Emacs, but the same permissions apply.
#
# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# }}}
#Play a sound to /dev/dsp
#If no pathname specified try to find it in the directory specified
#by the SOUNDIR variable.
SOUNDDIR=/usr/share/emacs/site-lisp/emacspeak/sounds
for i in $*
do
if [ ! -f $i ]
then
i=$SOUNDDIR/$i
fi
echo playiing $i
/usr/bin/sox $i -t ossdsp -w -s /dev/dsp
done
# {{{ Emacs local variables
### Local variables:
### major-mode: tcl-mode
### voice-lock-mode: t
### folded-file: t
### End:
# }}}
-----------------------------------------------------------------------------
To unsubscribe or change your address send mail to
"emacspeak-request@xxxxxxxxxxx" with a subject of "unsubscribe" or "help"
Emacspeak Files |
Subscribe |
Unsubscribe