sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Trying to record wav file using compiled version of sox
       [not found] <1324107962.2009346.1500416373281.ref@mail.yahoo.com>
@ 2017-07-18 22:19 ` David Zimmerli via Sox-users
  0 siblings, 0 replies; only message in thread
From: David Zimmerli via Sox-users @ 2017-07-18 22:19 UTC (permalink / raw)
  To: sox-users@lists.sourceforge.net; +Cc: David Zimmerli


[-- Attachment #1.1: Type: text/plain, Size: 1503 bytes --]


Hello all,
I'm trying to record a wav file from a USB audio adapter using a version of sox that I built from the sources.  (To get it to build I had to remove "lpc10" from the SUBDIRS and DIST_SUBDIRS lists in the Makefile).
Using the pre-built binaries, I can type either 

rec -r 96k -c 1 myfile.wav 
or

sox -r 96k -c 1 -d myfile.wav
and it works fine.  But when I try it with the compiled version, I get errors.  I've tried the following and gotten the following errors:
[src]$ ./sox -r 96k -c 1 -d  myfile.wav
.../sox/sox-14.4.1/src/.libs/lt-sox FAIL formats: can't open input file `/dev/dsp': No such file or directory

[src]$ ./sox -r 96k -c 1 /dev/snd/controlC2  myfile.wav
.../sox/sox-14.4.1/src/.libs/lt-sox FAIL formats: can't determine type of file `/dev/snd/controlC2'

[src]$ ./sox -r 96k -c 1 -t alsa /dev/snd myfile.wav
.../sox/sox-14.4.1/src/.libs/lt-sox FAIL formats: no handler for given file type `alsa'

[src]$ ./sox -r 96k -c 1 -t oss /dev/snd myfile.wav
.../sox/sox-14.4.1/src/.libs/lt-sox FAIL formats: can't open input file `/dev/snd': Unable to reset OSS driver.  Possibly accessing an invalid file/device

[src]$ padsp ./sox -r 96k -c 1 -d myfile.wav  # Works, but produces terrible sound quality in recorded file

I have the following kernel modules installed:
snd
snd_pcm
snd_usb_audio
soundcore
The driver controlling the USB audio adapter is /dev/snd/controlC2.  I am running Fedora 20 Linux.
Any help would be much appreciated.


[-- Attachment #1.2: Type: text/html, Size: 4002 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-18 22:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1324107962.2009346.1500416373281.ref@mail.yahoo.com>
2017-07-18 22:19 ` Trying to record wav file using compiled version of sox David Zimmerli via Sox-users

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).