On 07 Apr 2007 19:15:52 -0700, thejaswi_p_23
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I am writing a Python script in which a small portion involves playing
>  a sound beep on error. I am using the play utility from the sox
>  package. I use Fedora 6 and my sound card is Via 8235. It is working
>  fine on my box using the following command:
>
>  """
>     sox --device=/dev/audio --channels=2 --file=somefile.wav
>  """
>
>  To make the script portable across distros I have to locate a way to
>  select the default audio device. I have checked out in /etc/ also but
>  no files talked of the default device.
>  What is the method to locate the default audio device?
>

What is the version of your sox??

Try this:
sox somefile.wav -t wav default





-- 
________________________________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/>M d- s++:+ a- C++(++++) ULBS++++$ P+++>$ L+++$ E+ W++
N++ O! M! V! PS+ PE+ Y+ PGP>+++ 5! X! R- !tv b++(+++) DI+++ D--
G-- e++>++++ h r+ y+
------END GEEK CODE BLOCK------
-----------------------------------------------------------------

Reply via email to