Error when trying to run SoX Ubuntu 12.04

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Error when trying to run SoX Ubuntu 12.04

katherine bennett
Hello,

I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from the command line with:

# play <filename.wav>

I get the following error:

play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS driver.  Possibly accessing an invalid file/device

Any ideas about what needs to happen? I'd appreciate any insights!

server:~/sox# dpkg --list | grep sox
ii  libsox-dev                       14.3.2-3                     Development files for the SoX library
ii  libsox-fmt-all                   14.3.2-3                     All SoX format libraries
ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa format I/O library
ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao format I/O library
ii  libsox-fmt-base                  14.3.2-3                     Minimal set of SoX format libraries
ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX ffmpeg format library
ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3 format library
ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS format I/O library
ii  libsox-fmt-pulse                 14.3.2-3                     SoX PulseAudio format I/O library
ii  libsox1b                         14.3.2-3                     SoX library of audio effects and processing
ii  sox                              14.3.2-3                     Swiss army knife of sound processing

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

keghn


 Hello,
 I use Ubuntu 12.04 and mostly Mint 14.1 mate.
 I find this command word for me:

padsp play foo.wav


 I got the information from this web site:

http://billposer.org/Linguistics/Computation/SoxTutorial.html#mixing

 Lot of luck,
   keghn




-----Original Message-----
From: katherine bennett <[hidden email]>
To: sox-users <[hidden email]>
Sent: Wed, Jul 31, 2013 1:40 pm
Subject: [SoX-users] Error when trying to run SoX Ubuntu 12.04

Hello,

I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from the command line with:

# play <filename.wav>

I get the following error:

play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS driver.  Possibly accessing an invalid file/device

Any ideas about what needs to happen? I'd appreciate any insights!

server:~/sox# dpkg --list | grep sox
ii  libsox-dev                       14.3.2-3                     Development files for the SoX library
ii  libsox-fmt-all                   14.3.2-3                     All SoX format libraries
ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa format I/O library
ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao format I/O library
ii  libsox-fmt-base                  14.3.2-3                     Minimal set of SoX format libraries
ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX ffmpeg format library
ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3 format library
ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS format I/O library
ii  libsox-fmt-pulse                 14.3.2-3                     SoX PulseAudio format I/O library
ii  libsox1b                         14.3.2-3                     SoX library of audio effects and processing
ii  sox                              14.3.2-3                     Swiss army knife of sound processing
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Eric Wong
In reply to this post by katherine bennett
katherine bennett <[hidden email]> wrote:

> Hello,
>
> I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from
> the command line with:
>
> # play <filename.wav>
>
> I get the following error:
>
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device
>
> Any ideas about what needs to happen? I'd appreciate any insights!

Newer (14.4.x) versions of sox give higher priority to pulseaudio.
Perhaps:

   AUDIODRIVER=pulseaudio play <filename.wav>

Will work for you.

> server:~/sox# dpkg --list | grep sox
> ii  libsox-dev                       14.3.2-3
> Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3                     All SoX
> format libraries
> ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> format I/O library
> ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> format I/O library
> ii  libsox-fmt-base                  14.3.2-3                     Minimal
> set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> format library
> ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS

You can probably try uninstalling libsox-fmt-oss (and maybe
libsox-fmt-ao and libsox-fmt-alsa), too.  Maybe then AUDIODRIVER=
won't need to be set.

> format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3                     SoX
> library of audio effects and processing
> ii  sox                              14.3.2-3                     Swiss
> army knife of sound processing

You mentioned you installed 14.4.0 above, yet all the packages are
14.3.2...  How did you install 14.4.0?

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

keghn
 Hello,
 I use Ubuntu 12.04 and mostly Mint 14.1 mate.
 I find this command word for me:

padsp play foo.wav


 I got the information from this web site:

http://billposer.org/Linguistics/Computation/SoxTutorial.html#mixing


-----Original Message-----
From: Eric Wong <[hidden email]>
To: sox-users <[hidden email]>
Sent: Wed, Jul 31, 2013 11:13 pm
Subject: Re: [SoX-users] Error when trying to run SoX Ubuntu 12.04

katherine bennett <[hidden email]> wrote:
> Hello,
> 
> I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from
> the command line with:
> 
> # play <filename.wav>
> 
> I get the following error:
> 
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device
> 
> Any ideas about what needs to happen? I'd appreciate any insights!

Newer (14.4.x) versions of sox give higher priority to pulseaudio.
Perhaps:

   AUDIODRIVER=pulseaudio play <filename.wav>

Will work for you.

> server:~/sox# dpkg --list | grep sox
> ii  libsox-dev                       14.3.2-3
> Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3                     All SoX
> format libraries
> ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> format I/O library
> ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> format I/O library
> ii  libsox-fmt-base                  14.3.2-3                     Minimal
> set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> format library
> ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS

You can probably try uninstalling libsox-fmt-oss (and maybe
libsox-fmt-ao and libsox-fmt-alsa), too.  Maybe then AUDIODRIVER=
won't need to be set.

> format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3                     SoX
> library of audio effects and processing
> ii  sox                              14.3.2-3                     Swiss
> army knife of sound processing

You mentioned you installed 14.4.0 above, yet all the packages are
14.3.2...  How did you install 14.4.0?

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Jan Stary
In reply to this post by katherine bennett
On Jul 31 16:40:30, [hidden email] wrote:

> Hello,
>
> I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from
> the command line with:
>
> # play <filename.wav>
>
> I get the following error:
>
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device
>
> Any ideas about what needs to happen? I'd appreciate any insights!
>
> server:~/sox# dpkg --list | grep sox
> ii  libsox-dev                       14.3.2-3
> Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3                     All SoX
> format libraries
> ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> format I/O library
> ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> format I/O library
> ii  libsox-fmt-base                  14.3.2-3                     Minimal
> set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> format library
> ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS
> format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3                     SoX
> library of audio effects and processing
> ii  sox                              14.3.2-3                     Swiss
> army knife of sound processing

You say you installed 14.4.0 but this shows you have 14.3.2 installed.

Anyway,

> play FAIL formats: can't open output file `/dev/dsp':

probably means that some other program holds
the audio device open for itself.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

keghn
 Hello,
 I use Ubuntu 12.04 and mostly Mint 14.1 mate.
 I find that this command worked for me:

padsp play foo.wav


 I got the information from this web site:

http://billposer.org/Linguistics/Computation/SoxTutorial.html#mixing



-----Original Message-----
From: Jan Stary <[hidden email]>
To: sox-users <[hidden email]>
Sent: Tue, Aug 6, 2013 2:50 pm
Subject: Re: [SoX-users] Error when trying to run SoX Ubuntu 12.04

On Jul 31 16:40:30, [hidden email] wrote:
> Hello,
> 
> I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from
> the command line with:
> 
> # play <filename.wav>
> 
> I get the following error:
> 
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device
> 
> Any ideas about what needs to happen? I'd appreciate any insights!
> 
> server:~/sox# dpkg --list | grep sox
> ii  libsox-dev                       14.3.2-3
> Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3                     All SoX
> format libraries
> ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> format I/O library
> ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> format I/O library
> ii  libsox-fmt-base                  14.3.2-3                     Minimal
> set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> format library
> ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS
> format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3                     SoX
> library of audio effects and processing
> ii  sox                              14.3.2-3                     Swiss
> army knife of sound processing

You say you installed 14.4.0 but this shows you have 14.3.2 installed.

Anyway,

> play FAIL formats: can't open output file `/dev/dsp':

probably means that some other program holds
the audio device open for itself.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

katherine bennett
Hello,

I try the suggestions and I get:

play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS driver.  Possibly accessing an invalid file/device

Any ideas of where to start looking to solve this?

When I "Sox", I get:

sox:      SoX v14.4.0

sox FAIL sox: Not enough input filenames specified

hmm....


On Tue, Aug 6, 2013 at 6:55 PM, <[hidden email]> wrote:
 Hello,
 I use Ubuntu 12.04 and mostly Mint 14.1 mate.
 I find that this command worked for me:

padsp play foo.wav


 I got the information from this web site:




-----Original Message-----
From: Jan Stary <[hidden email]>
To: sox-users <[hidden email]>
Sent: Tue, Aug 6, 2013 2:50 pm
Subject: Re: [SoX-users] Error when trying to run SoX Ubuntu 12.04

On Jul 31 16:40:30, [hidden email] wrote:
> Hello,
> 
> I installed SoX 14.4.0 on Ubuntu 12.04.2 I'm trying to play a wav file from
> the command line with:
> 
> # play <filename.wav>
> 
> I get the following error:
> 
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device
> 
> Any ideas about what needs to happen? I'd appreciate any insights!
> 
> server:~/sox# dpkg --list | grep sox
> ii  libsox-dev                       14.3.2-3
> Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3                     All SoX
> format libraries
> ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> format I/O library
> ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> format I/O library
> ii  libsox-fmt-base                  14.3.2-3                     Minimal
> set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> format library
> ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS
> format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3                     SoX
> library of audio effects and processing
> ii  sox                              14.3.2-3                     Swiss
> army knife of sound processing

You say you installed 14.4.0 but this shows you have 14.3.2 installed.

Anyway,

> play FAIL formats: can't open output file `/dev/dsp':

probably means that some other program holds
the audio device open for itself.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users



------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Jan Stary
On Aug 08 23:58:40, [hidden email] wrote:
> I try the suggestions and I get:

Sigh. Instead of "I try the suggestions",
show us your full and exact command line,
preferably with 'sox -V', and the full and exact output.
We don't know what you did here.

> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device

Possibly something else is holding the /dev/dsp device for itself.
Doesn't linux have some version of fstat(1)
to see what processes have a file open?

Perhaps your version of linux is using some 'sound daemon';
make sure you turn that of, that the /dev/dsp device is
for the taking, and try again. I am pretty sure this
is not a problem of SoX as such, but rather your system.

> When I "Sox", I get:
> sox:      SoX v14.4.0

So how did you install this SoX and where to?
Why do you also have 14.3.2 installed which you don't use?

> > > server:~/sox# dpkg --list | grep sox
> > > ii  libsox-dev                       14.3.2-3
> > > Development files for the SoX library
> > > ii  libsox-fmt-all                   14.3.2-3                     All SoX
> > > format libraries
> > > ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> > > format I/O library
> > > ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> > > format I/O library
> > > ii  libsox-fmt-base                  14.3.2-3                     Minimal
> > > set of SoX format libraries
> > > ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> > > ffmpeg format library
> > > ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> > > format library
> > > ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS
> > > format I/O library
> > > ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> > > PulseAudio format I/O library
> > > ii  libsox1b                         14.3.2-3                     SoX
> > > library of audio effects and processing
> > > ii  sox                              14.3.2-3                     Swiss
> > > army knife of sound processing

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

katherine bennett
Here's what I get:

root@server:/etc# sox -V
sox:      SoX v14.4.0
sox FAIL sox: Not enough input filenames specified

Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]...

SPECIAL FILENAMES (infile, outfile):
-                        Pipe/redirect input/output (stdin/stdout); may need -t
-d, --default-device     Use the default audio device (where available)
-n, --null               Use the `null' file handler; e.g. with synth effect
-p, --sox-pipe           Alias for `-t sox -'

SPECIAL FILENAMES (infile only):
"|program [options] ..." Pipe input from external program (where supported)
http://server/file       Use the given URL as input file (where supported)

GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):
--buffer BYTES           Set the size of all processing buffers (default 8192)
--clobber                Don't prompt to overwrite output file (default)
--combine concatenate    Concatenate all input files (default for sox, rec)
--combine sequence       Sequence all input files (default for play)
-D, --no-dither          Don't dither automatically
--effects-file FILENAME  File containing effects and options
-G, --guard              Use temporary files to guard against clipping
-h, --help               Display version number and usage information
--help-effect NAME       Show usage of effect NAME, or NAME=all for all
--help-format NAME       Show info on format NAME, or NAME=all for all
--i, --info              Behave as soxi(1)
--input-buffer BYTES     Override the input buffer size (default: as --buffer)
--no-clobber             Prompt to overwrite output file
-m, --combine mix        Mix multiple input files (instead of concatenating)
--combine mix-power      Mix to equal power (instead of concatenating)
-M, --combine merge      Merge multiple input files (instead of concatenating)
--multi-threaded         Enable parallel effects channels processing
--norm                   Guard (see --guard) & normalise
--play-rate-arg ARG      Default `rate' argument for auto-resample with `play'
--plot gnuplot|octave    Generate script to plot response of filter effect
-q, --no-show-progress   Run in quiet mode; opposite of -S
--replay-gain track|album|off  Default: off (sox, rec), track (play)
-R                       Use default random numbers (same on each run of SoX)
-S, --show-progress      Display progress while processing audio data
--single-threaded        Disable parallel effects channels processing
--temp DIRECTORY         Specify the directory to use for temporary files
-T, --combine multiply   Multiply samples of corresponding channels from all
                         input files (instead of concatenating)
--version                Display version number of SoX and exit
-V[LEVEL]                Increment or set verbosity level (default 2); levels:
                           1: failure messages
                           2: warnings
                           3: details of processing
                           4-6: increasing levels of debug messages
FORMAT OPTIONS (fopts):
Input file format options need only be supplied for files that are headerless.
Output files will have the same format as the input file where possible and not
overriden by any of various means including providing output format options.

-v|--volume FACTOR       Input file volume adjustment factor (real number)
--ignore-length          Ignore input file length given in header; read to EOF
-t|--type FILETYPE       File type of audio
-e|--encoding ENCODING   Set encoding (ENCODING may be one of signed-integer,
                         unsigned-integer, floating-point, mu-law, a-law,
                         ima-adpcm, ms-adpcm, gsm-full-rate)
-b|--bits BITS           Encoded sample size in bits
-N|--reverse-nibbles     Encoded nibble-order
-X|--reverse-bits        Encoded bit-order
--endian little|big|swap Encoded byte-order; swap means opposite to default
-L/-B/-x                 Short options for the above
-c|--channels CHANNELS   Number of channels of audio data; e.g. 2 = stereo
-r|--rate RATE           Sample rate of audio
-C|--compression FACTOR  Compression factor for output format
--add-comment TEXT       Append output file comment
--comment TEXT           Specify comment text for the output file
--comment-file FILENAME  File containing comment text for the output file
--no-glob                Don't `glob' wildcard match the following filename

AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avr cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud nist ogg prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl sln smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox wav wavpcm wve xa
PLAYLIST FORMATS: m3u pls
AUDIO DEVICE DRIVERS: oss ossdsp

EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast dcshift deemph delay dither divide+ downsample earwax echo echos equalizer fade fir firfit+ flanger gain highpass hilbert input# loudness lowpass mcompand mixer* noiseprof noisered norm oops output# overdrive pad phaser pitch rate remix repeat reverb reverse riaa silence sinc spectrogram speed splice stat stats stretch swap synth tempo treble tremolo trim upsample vad vol
  * Deprecated effect    + Experimental effect    # LibSoX-only effect
EFFECT OPTIONS (effopts): effect dependent; see --help-effect

I'm setting up my remote server for Asterisk and want SoX to change formats, etc. Upon some Google searches it seems that Ubuntu 12.04 has disabled support for OSS support.


Alsa isn't installed. 

I'm no admin pro, but I did install Ubuntu 12.04.

Any thoughts or leads? Would be much appreciated!

Thank you!

On Fri, Aug 9, 2013 at 3:38 AM, Jan Stary <[hidden email]> wrote:
On Aug 08 23:58:40, [hidden email] wrote:
> I try the suggestions and I get:

Sigh. Instead of "I try the suggestions",
show us your full and exact command line,
preferably with 'sox -V', and the full and exact output.
We don't know what you did here.

> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device

Possibly something else is holding the /dev/dsp device for itself.
Doesn't linux have some version of fstat(1)
to see what processes have a file open?

Perhaps your version of linux is using some 'sound daemon';
make sure you turn that of, that the /dev/dsp device is
for the taking, and try again. I am pretty sure this
is not a problem of SoX as such, but rather your system.

> When I "Sox", I get:
> sox:      SoX v14.4.0

So how did you install this SoX and where to?
Why do you also have 14.3.2 installed which you don't use?

> > > server:~/sox# dpkg --list | grep sox
> > > ii  libsox-dev                       14.3.2-3
> > > Development files for the SoX library
> > > ii  libsox-fmt-all                   14.3.2-3                     All SoX
> > > format libraries
> > > ii  libsox-fmt-alsa                  14.3.2-3                     SoX alsa
> > > format I/O library
> > > ii  libsox-fmt-ao                    14.3.2-3                     SoX Libao
> > > format I/O library
> > > ii  libsox-fmt-base                  14.3.2-3                     Minimal
> > > set of SoX format libraries
> > > ii  libsox-fmt-ffmpeg                14.3.2-3                     SoX
> > > ffmpeg format library
> > > ii  libsox-fmt-mp3                   14.3.2-3                     SoX MP3
> > > format library
> > > ii  libsox-fmt-oss                   14.3.2-3                     SoX OSS
> > > format I/O library
> > > ii  libsox-fmt-pulse                 14.3.2-3                     SoX
> > > PulseAudio format I/O library
> > > ii  libsox1b                         14.3.2-3                     SoX
> > > library of audio effects and processing
> > > ii  sox                              14.3.2-3                     Swiss
> > > army knife of sound processing

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Ulrich Klauer-2
Katherine Bennett wrote:

> root@server:/etc# sox -V

Are you trying to play back something on the remote server? This would  
mean (if it works at all, and the server has sound hardware) that the  
audio is played where the server is.

Otherwise, what happens when you do "play file.wav -t alsa"?

Ulrich


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Ulrich Klauer-2
> Are you trying to play back something on the remote server? This would
> mean (if it works at all, and the server has sound hardware) that the
> audio is played where the server is.

> Otherwise, what happens when you do "play file.wav -t alsa"?

Sorry, saw too late that alsa is not listed among the available  
drivers. Can you install (with apt-get, aptitude or whatever) the  
packages alsa-base, alsa-utils, libsox-fmt-alsa?

Ulrich


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Jan Stary
In reply to this post by katherine bennett
> > Sigh. Instead of "I try the suggestions",
> > show us your full and exact command line,
> > preferably with 'sox -V', and the full and exact output.
> > We don't know what you did here.

On Aug 09 16:39:23, [hidden email] wrote:
> Here's what I get:
> root@server:/etc# sox -V

No. This is not you full and exact command line.
Show us what you are doing, just add '-V' to the options.

(Also, why are you running SoX as root, from within /etc ?)

> I'm setting up my remote server for Asterisk and want SoX to change
> formats, etc. Upon some Google searches it seems that Ubuntu 12.04 has
> disabled support for OSS support.
> https://help.ubuntu.com/community/OpenSound
> Alsa isn't installed.

If your Ubuntu installation doesn;t have OSS and doesn't have ALSA,
what auduio system does it use to play audio?

What happens if you do install ALSA?

> > So how did you install this SoX and where to?
> > Why do you also have 14.3.2 installed which you don't use?


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

katherine bennett
Hello,

Ah! The -V options now makes sense! Verbose! Thank you for clarifying!

I'm trying to make sure that SoX is installed correctly on my remote server. For the most part, it'll be used to swap file formats of sound files for various applications. I understand that the remote server would have to have the correct hardware to play sound out. It seems that it's swapping formats correctly. I just want to make sure that it's functioning appropriately otherwise, considering my setup.

When I "depo# play -V 0731-1632-06.wav -t alsa" 

I get --->

play:      SoX v14.4.0
play INFO formats: detected file format type `wav'

Input File     : '0731-1632-06.wav'
Channels       : 1
Sample Rate    : 8000
Precision      : 16-bit
Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
File Size      : 242k
Bit Rate       : 128k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

play FAIL formats: no handler for given file type `alsa'


When I "depo# play -V 0731-1632-06.wav"

I get ----->

play:      SoX v14.4.0
play INFO formats: detected file format type `wav'

Input File     : '0731-1632-06.wav'
Channels       : 1
Sample Rate    : 8000
Precision      : 16-bit
Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
File Size      : 242k
Bit Rate       : 128k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

play INFO sox: Overwriting `/dev/dsp'
play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS driver.  Possibly accessing an invalid file/device


I believe I installed SoX twice and that they are running separately. Because when I "dpkg --list | grep sox"

I get ------> 

ii  libsox-dev                       14.3.2-3                            Development files for the SoX library
ii  libsox-fmt-all                   14.3.2-3                            All SoX format libraries
ii  libsox-fmt-alsa                  14.3.2-3                            SoX alsa format I/O library
ii  libsox-fmt-ao                    14.3.2-3                            SoX Libao format I/O library
ii  libsox-fmt-base                  14.3.2-3                            Minimal set of SoX format libraries
ii  libsox-fmt-ffmpeg                14.3.2-3                            SoX ffmpeg format library
ii  libsox-fmt-mp3                   14.3.2-3                            SoX MP3 format library
ii  libsox-fmt-oss                   14.3.2-3                            SoX OSS format I/O library
ii  libsox-fmt-pulse                 14.3.2-3                            SoX PulseAudio format I/O library
ii  libsox1b                         14.3.2-3                            SoX library of audio effects and processing
rc  sox                              14.3.2-3                            Swiss army knife of sound processing

I'm not quite sure how to rectify that. Suggestions?

Other notes/info:

I installed Alsa and OSS.

depo# dpkg --list | grep alsa
ii  alsa-base                        1.0.25+dfsg-0ubuntu1.1              ALSA driver configuration files
ii  alsa-tools                       1.0.25-1ubuntu1                     Console based ALSA utilities for specific hardware
ii  alsa-utils                       1.0.25-1ubuntu5.2                   Utilities for configuring and using ALSA
ii  libsox-fmt-alsa                  14.3.2-3                            SoX alsa format I/O library

depo# dpkg --list | grep OSS
ii  libpulsedsp                      1:1.1-0ubuntu15.3                   PulseAudio OSS pre-load library
ii  libsox-fmt-oss                   14.3.2-3                            SoX OSS format I/O library
ii  linux-sound-base                 1.0.25+dfsg-0ubuntu1.1              base package for ALSA and OSS sound systems
ii  oss-compat                       1                                   Open Sound System (OSS) compatibility package


Thanks for the guidance and patience!



On Sun, Aug 11, 2013 at 1:02 PM, Jan Stary <[hidden email]> wrote:
> > Sigh. Instead of "I try the suggestions",
> > show us your full and exact command line,
> > preferably with 'sox -V', and the full and exact output.
> > We don't know what you did here.

On Aug 09 16:39:23, [hidden email] wrote:
> Here's what I get:
> root@server:/etc# sox -V

No. This is not you full and exact command line.
Show us what you are doing, just add '-V' to the options.

(Also, why are you running SoX as root, from within /etc ?)

> I'm setting up my remote server for Asterisk and want SoX to change
> formats, etc. Upon some Google searches it seems that Ubuntu 12.04 has
> disabled support for OSS support.
> https://help.ubuntu.com/community/OpenSound
> Alsa isn't installed.

If your Ubuntu installation doesn;t have OSS and doesn't have ALSA,
what auduio system does it use to play audio?

What happens if you do install ALSA?

> > So how did you install this SoX and where to?
> > Why do you also have 14.3.2 installed which you don't use?


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

keghn
 Hello,
 Do you know if you are using "Jackaudio" or an app such as  Ardour the digital workstation?
 I here jack interferes with other audio software.
 If it is possible type jackaoudio into your software manager and see if it is installed.

-----Original Message-----
From: katherine bennett <[hidden email]>
To: sox-users <[hidden email]>
Sent: Thu, Aug 15, 2013 1:24 pm
Subject: Re: [SoX-users] Error when trying to run SoX Ubuntu 12.04

Hello,

Ah! The -V options now makes sense! Verbose! Thank you for clarifying!

I'm trying to make sure that SoX is installed correctly on my remote server. For the most part, it'll be used to swap file formats of sound files for various applications. I understand that the remote server would have to have the correct hardware to play sound out. It seems that it's swapping formats correctly. I just want to make sure that it's functioning appropriately otherwise, considering my setup.

When I "depo# play -V 0731-1632-06.wav -t alsa" 

I get --->

play:      SoX v14.4.0
play INFO formats: detected file format type `wav'

Input File     : '0731-1632-06.wav'
Channels       : 1
Sample Rate    : 8000
Precision      : 16-bit
Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
File Size      : 242k
Bit Rate       : 128k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

play FAIL formats: no handler for given file type `alsa'


When I "depo# play -V 0731-1632-06.wav"

I get ----->

play:      SoX v14.4.0
play INFO formats: detected file format type `wav'

Input File     : '0731-1632-06.wav'
Channels       : 1
Sample Rate    : 8000
Precision      : 16-bit
Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
File Size      : 242k
Bit Rate       : 128k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

play INFO sox: Overwriting `/dev/dsp'
play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS driver.  Possibly accessing an invalid file/device


I believe I installed SoX twice and that they are running separately. Because when I "dpkg --list | grep sox"

I get ------> 

ii  libsox-dev                       14.3.2-3                            Development files for the SoX library
ii  libsox-fmt-all                   14.3.2-3                            All SoX format libraries
ii  libsox-fmt-alsa                  14.3.2-3                            SoX alsa format I/O library
ii  libsox-fmt-ao                    14.3.2-3                            SoX Libao format I/O library
ii  libsox-fmt-base                  14.3.2-3                            Minimal set of SoX format libraries
ii  libsox-fmt-ffmpeg                14.3.2-3                            SoX ffmpeg format library
ii  libsox-fmt-mp3                   14.3.2-3                            SoX MP3 format library
ii  libsox-fmt-oss                   14.3.2-3                            SoX OSS format I/O library
ii  libsox-fmt-pulse                 14.3.2-3                            SoX PulseAudio format I/O library
ii  libsox1b                         14.3.2-3                            SoX library of audio effects and processing
rc  sox                              14.3.2-3                            Swiss army knife of sound processing

I'm not quite sure how to rectify that. Suggestions?

Other notes/info:

I installed Alsa and OSS.

depo# dpkg --list | grep alsa
ii  alsa-base                        1.0.25+dfsg-0ubuntu1.1              ALSA driver configuration files
ii  alsa-tools                       1.0.25-1ubuntu1                     Console based ALSA utilities for specific hardware
ii  alsa-utils                       1.0.25-1ubuntu5.2                   Utilities for configuring and using ALSA
ii  libsox-fmt-alsa                  14.3.2-3                            SoX alsa format I/O library

depo# dpkg --list | grep OSS
ii  libpulsedsp                      1:1.1-0ubuntu15.3                   PulseAudio OSS pre-load library
ii  libsox-fmt-oss                   14.3.2-3                            SoX OSS format I/O library
ii  linux-sound-base                 1.0.25+dfsg-0ubuntu1.1              base package for ALSA and OSS sound systems
ii  oss-compat                       1                                   Open Sound System (OSS) compatibility package


Thanks for the guidance and patience!



On Sun, Aug 11, 2013 at 1:02 PM, Jan Stary <[hidden email]> wrote:
> > Sigh. Instead of "I try the suggestions",
> > show us your full and exact command line,
> > preferably with 'sox -V', and the full and exact output.
> > We don't know what you did here.

On Aug 09 16:39:23, [hidden email] wrote:
> Here's what I get:
> root@server:/etc# sox -V

No. This is not you full and exact command line.
Show us what you are doing, just add '-V' to the options.

(Also, why are you running SoX as root, from within /etc ?)

> I'm setting up my remote server for Asterisk and want SoX to change
> formats, etc. Upon some Google searches it seems that Ubuntu 12.04 has
> disabled support for OSS support.
> https://help.ubuntu.com/community/OpenSound
> Alsa isn't installed.

If your Ubuntu installation doesn;t have OSS and doesn't have ALSA,
what auduio system does it use to play audio?

What happens if you do install ALSA?

> > So how did you install this SoX and where to?
> > Why do you also have 14.3.2 installed which you don't use?


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users
Reply | Threaded
Open this post in threaded view
|

Re: Error when trying to run SoX Ubuntu 12.04

Jan Stary
In reply to this post by katherine bennett
On Aug 15 16:24:04, [hidden email] wrote:
> I'm trying to make sure that SoX is installed correctly on my remote
> server. For the most part, it'll be used to swap file formats of sound
> files for various applications. I understand that the remote server would
> have to have the correct hardware to play sound out. It seems that it's
> swapping formats correctly. I just want to make sure that it's functioning
> appropriately otherwise, considering my setup.

You say "remote server". Why do you want to have
audio hardware and play something out loud on
a "remote server"?

> When I "depo# play -V 0731-1632-06.wav -t alsa"

So, your audio hardware is driven by ALSA?

> I get --->
>
> play:      SoX v14.4.0
> play INFO formats: detected file format type `wav'
>
> Input File     : '0731-1632-06.wav'
> Channels       : 1
> Sample Rate    : 8000
> Precision      : 16-bit
> Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
> File Size      : 242k
> Bit Rate       : 128k
> Sample Encoding: 16-bit Signed Integer PCM
> Endian Type    : little
> Reverse Nibbles: no
> Reverse Bits   : no
>
> play FAIL formats: no handler for given file type `alsa'
>
>
> When I "depo# play -V 0731-1632-06.wav"

So, your audio driver is driven by OSS?

> I get ----->
>
> play:      SoX v14.4.0
> play INFO formats: detected file format type `wav'
>
> Input File     : '0731-1632-06.wav'
> Channels       : 1
> Sample Rate    : 8000
> Precision      : 16-bit
> Duration       : 00:00:15.15 = 121200 samples ~ 1136.25 CDDA sectors
> File Size      : 242k
> Bit Rate       : 128k
> Sample Encoding: 16-bit Signed Integer PCM
> Endian Type    : little
> Reverse Nibbles: no
> Reverse Bits   : no
>
> play INFO sox: Overwriting `/dev/dsp'
> play FAIL formats: can't open output file `/dev/dsp': Unable to reset OSS
> driver.  Possibly accessing an invalid file/device

Which processes have the file /dev/dsp open?

> I believe I installed SoX twice and that they are running separately.
> Because when I "dpkg --list | grep sox"
>
> I get ------>
>
> ii  libsox-dev                       14.3.2-3
>  Development files for the SoX library
> ii  libsox-fmt-all                   14.3.2-3
>  All SoX format libraries
> ii  libsox-fmt-alsa                  14.3.2-3
>  SoX alsa format I/O library
> ii  libsox-fmt-ao                    14.3.2-3
>  SoX Libao format I/O library
> ii  libsox-fmt-base                  14.3.2-3
>  Minimal set of SoX format libraries
> ii  libsox-fmt-ffmpeg                14.3.2-3
>  SoX ffmpeg format library
> ii  libsox-fmt-mp3                   14.3.2-3
>  SoX MP3 format library
> ii  libsox-fmt-oss                   14.3.2-3
>  SoX OSS format I/O library
> ii  libsox-fmt-pulse                 14.3.2-3
>  SoX PulseAudio format I/O library
> ii  libsox1b                         14.3.2-3
>  SoX library of audio effects and processing
> rc  sox                              14.3.2-3
>  Swiss army knife of sound processing

Apparently, you have installed a package of SoX 14.3.2
that the packaging system of your Ubuntu provides,
and you have also installed SoX 14.4.0.
Why, and how exactly have you installed the 14.4.0?

> I'm not quite sure how to rectify that. Suggestions?

Decide what version of SoX you want to have installed,
and stick to that one installation. Preferably, use
a package of 14.4.0 if Ubuntu has it.

Decide what udio drivers you want to use,
and stick to that one audio driver - if
you _need_ to play duio, which you don't.

> Other notes/info:
> I installed Alsa and OSS.

Why have you installed both?

> > > I'm setting up my remote server for Asterisk and want SoX to change
> > > formats, etc. Upon some Google searches it seems that Ubuntu 12.04 has
> > > disabled support for OSS support.
> > > https://help.ubuntu.com/community/OpenSound
> > > Alsa isn't installed.

You don't need neither ALSA nor OSS to change formats with SoX.
In fact, you don't need to play sound at all.

        Jan


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Sox-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/sox-users