baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- From: baslinux AT lists.ibiblio.org
- To: baslinux AT lists.ibiblio.org
- Subject: Re: [BL] sound recording.
- Date: Sun, 25 Mar 2007 00:51:30 +0000 (UTC)
On Sat, 24 Mar 2007 baslinux AT lists.ibiblio.org wrote:
Sindi wrote:
[recording with sox]
Thanks. The man page was not entirely understandable.
The versions I've seen are very messy. Maybe they don't expect anyone
to actually read it, instead probably using something else like
Audacity to record.
-t ossdsp file type is ossdsp for use with /dev/dsp and OSS
-w 16-bit word - how would we do 8-bit for SBPro?
-b. If you specify nothing it should detect that the card is only
capable of 8-bit and make the necessary adjustments automatically.
They also suggest:
-s signed linear sample data. Is this default?
Either signed or unsigned is default. It doesn't really matter, most
WAV software understands both. If you are capturing RAW (headerless,
instead of WAV), signed is better (easier to process).
Play is a script for using sox, so uses the same options.
More recent versions of sox include a "rec" script, which works like
"play" for recording.
play -V filename.wav says a wav file is 11025 byte/sec, 1 channel,
Microsoft PCM. (8-bit mono - 16-bit stereo would be 44100). Can it be
played on an i810 chip (only works at 48KHz) with play and some option(s)?
Recent versions of play will automatically do the resampling for you,
as needed. MPlayer will, also.
So will Timidity. mpg3 I don't think does that.
Sindi
David
Thanks. I downloaded the Feb 11, 2007 Sox 13.00 (about 700K source code) and it compiled in BL2 with no tweaking! It needs libst.so.0 (which got compiled at the same time), libm, libc, ld-linux.
play and rec are now symlinked to sox in /usr/local/bin, rather than play being a separate script. The man pages are also linked.
The old sox from 1999 is 120K and the new one 100 unstripped or 30K stripped. But it requires a large new library (809K libst.so.0).
'make install' did not install libst.so.0.0 so I copied it manually (with symlinks to so.0 thence to so) to /usr/local/lib, where it was not found, then to /usr/lib, where it was found.
It also did not delete /usr/bin/sox and /usr/bin/play when it installed the new files to /usr/local/bin, so I renamed them myself and will delete them. Ditto for the old sox and play man pages.
The new 'play' plays a wav file and lists sample size, unsigned, 1 channel, 11025, and time elapsed.
I manually copied files from /usr/local/bin /usr/local/man /usr/local/include and /usr/lib to a separate directory. I cd'ed to the root of it.
I ran makepkg, which made install/doinst.sh, then I edited doinst.sh made by makepkg (which removes old versions of things in /usr/local and makes symlinks to sox from play and rec) to also remove the 1999 SW7.1 version before installing the new version by adding at the top of it:
(cd /usr/bin ; rm -rf sox )
(cd /usr/bin ; rm -rf play )
(cd /usr/man/man1 ; rm -rf sox.1.* ) will remove gz version too
(cd /usr/man/man1 ; rm -rf play.1.* ) will remove gz version too
I deleted the original .tgz file and made a new one, which incorporated the new doinst.sh.
Someone please test it to make sure things get deleted and symlinked as they should.
Is there an easier way to do all this?
http://keesan.freeshell.org/bl/sox-13.0.0-glibc225.tgz
I tested play but not rec. Needs the SW8.1 glib (libc, libm, ld-linux) which you can add to BL3.
Thanks, David
Sindi
-
[BL] sound recording.,
baslinux, 03/23/2007
-
Re: [BL] sound recording.,
baslinux, 03/23/2007
- Re: [BL] sound recording., baslinux, 03/23/2007
-
Re: [BL] sound recording.,
baslinux, 03/23/2007
-
Re: [BL] sound recording.,
baslinux, 03/23/2007
-
Re: [BL] sound recording.,
baslinux, 03/24/2007
- Re: [BL] sound recording., baslinux, 03/24/2007
-
Re: [BL] sound recording.,
baslinux, 03/24/2007
-
Re: [BL] sound recording.,
baslinux, 03/24/2007
- Re: [BL] sound recording., baslinux, 03/24/2007
- Re: [BL] sound recording., baslinux, 03/26/2007
- Re: [BL] sound recording., baslinux, 03/26/2007
- Re: [BL] sound recording., baslinux, 03/26/2007
- Re: [BL] sound recording., baslinux, 03/27/2007
- Re: [BL] sound recording., baslinux, 03/28/2007
-
Re: [BL] sound recording.,
baslinux, 03/24/2007
-
Re: [BL] sound recording.,
baslinux, 03/24/2007
-
Re: [BL] sound recording.,
baslinux, 03/23/2007
-
Re: [BL] sound recording.,
baslinux, 03/23/2007
Archive powered by MHonArc 2.6.24.