From: David Zimmerli via Sox-users <sox-users@lists.sourceforge.net>
To: "sox-users@lists.sourceforge.net" <sox-users@lists.sourceforge.net>
Cc: David Zimmerli <ricercare2001@yahoo.com>
Subject: Trying to record wav file using compiled version of sox
Date: Tue, 18 Jul 2017 22:19:33 +0000 (UTC) [thread overview]
Message-ID: <1324107962.2009346.1500416373281@mail.yahoo.com> (raw)
In-Reply-To: 1324107962.2009346.1500416373281.ref@mail.yahoo.com
[-- 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
parent reply other threads:[~2017-07-18 22:20 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1324107962.2009346.1500416373281.ref@mail.yahoo.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-users
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1324107962.2009346.1500416373281@mail.yahoo.com \
--to=sox-users@lists.sourceforge.net \
--cc=ricercare2001@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).