Still get scambled noise with all of these commands. I'm using an IBM X40. device dev/audio, sampling 8000 ------------------------------- # rec -c 1 -r 8000 -f U -s b -d /dev/audio myvoice.raw Send break (control-c) to end recording ^C # play -c 1 -r 8000 -f U -s b -d /dev/audio myvoice.raw
device /dev/sound, sampling 8000 -------------------------------- # rec -c 1 -r 8000 -f U -s b -d /dev/sound myvoice.raw Send break (control-c) to end recording ^C # play -c 1 -r 8000 -f U -s b -d /dev/sound myvoice.raw device /dev/sound, sampling 48000 --------------------------------- # rec -c 1 -r 48000 -f U -s b -d /dev/sound myvoice.raw Send break (control-c) to end recording ^C # play -c 1 -r 48000 -f U -s b -d /dev/sound myvoice.raw device /dev/audio, samping 48000 -------------------------------- # rec -c 1 -r 48000 -f U -s b -d /dev/audio myvoice.raw Send break (control-c) to end recording ^C # play -c 1 -r 48000 -f U -s b -d /dev/audio myvoice.raw # audioctl -a name=ICH4 AC97 version=0x01 config=auich0 encodings=ulinear:8,mulaw:8*,alaw:8*,slinear:8*,slinear_le:16,ulinear_le:16*,slinear_be:16*,ulinear_be:16* properties=full_duplex,mmap,independent full_duplex=0 fullduplex=0 blocksize=1600 hiwat=40 lowat=1 monitor_gain=0 mode= play.rate=8000 play.channels=1 play.precision=8 play.encoding=mulaw play.gain=127 play.balance=32 play.port=0x0 play.avail_ports=0x0 play.seek=0 play.samples=0 play.eof=0 play.pause=0 play.error=0 play.waiting=0 play.open=0 play.active=0 play.buffer_size=65536 record.rate=8000 record.channels=1 record.precision=8 record.encoding=mulaw record.gain=191 record.balance=32 record.port=0x1 record.avail_ports=0x7 record.seek=0 record.samples=456960 record.eof=0 record.pause=0 record.error=0 record.waiting=0 record.open=0 record.active=0 record.buffer_size=65536 record.errors=0 On Wed, Jun 22, 2005 at 05:09:33PM -0700, Jacob Meuser wrote: > On Wed, Jun 22, 2005 at 11:39:26PM +0100, Ed Wandasiewicz wrote: > > Following the faq, here is my output. Using /dev/audio and sox, I get > > scrambled noise. The bytes/sec dont match... > > > # dd if=/dev/audio of=myvoice.raw > > 289+0 records in > > 289+0 records out > > 147968 bytes transferred in 4.636 secs (31917 bytes/sec) > > # dd if=myvoice.raw of=/dev/audio > > 289+0 records in > > 289+0 records out > > 147968 bytes transferred in 16.498 secs (8969 bytes/sec) > > what is the full output of 'audioctl -a' right after running there > commands? > > I'm guessing that something (sample_rate, precision, channels or > encoding) doesn't match between record and play. > > also note, auich(4) says, "Some hardware implementations only > support 48kHz sampling rates." > > did you try using /dev/sound as well? > > -- > <[EMAIL PROTECTED]>