[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audio recorder



Hi;
        I use the command `sox -t ossdsp -w -r 44100 -s -v 1.5 /dev/audio 
foo.ogg` and the system crash with address error exception. I tried with "-l" 
and it crashes also. Then I used "-b" (sample size of bytes), it works. Any 
idea why..?

Regards,
TEH

On Saturday 01 November 2003 09:06, Hysun Chung wrote:
> On Fri, Oct 31, 2003 at 04:42:59PM +0800, Teh Kok How wrote:
> > Hi;
> > 	Thanks for your reply. I am using OpenBSD3.2 on my MIPS embedded system.
> > So, I am not able to use the sox-12.17.4 with mp3 support. However, I am
> > able to build the vorbis format. So, I tried your sox command to record a
> > 1KHz sine wave from a function generator. Then, I play the foo.ogg with
> > mp3blaster. The effect of the playback is such that it has clear 1KHz for
> > sometime, then lots of noise, then clear 1Khz for another period of time
> > and then noise again. So, the 1KHz is interleaved with noise and it
> > happens with quite a fix period. Any idea how to characterise this
> > problem and adjust the parameters to the sox command so that I can get a
> > stable clear signal recorded? BTW, I am sure there is nothing wrong with
> > the mp3blaster output and my speaker as I am able to play song34.mp3 and
> > song34.ogg very clearly.
>
> I'm afraid I don't have any easy answers for you now. You'll have to do
> some troubleshooting to determine the cause. Try recording empty sound
> and see if the noise is still there. How about when recording a raw audio
> file?  Maybe cat the raw device and feed the raw file back to it to be
> sure?
>
> -Hysun
>
> > Regards,
> > TEH
> >
> > On Friday 31 October 2003 10:33, Hysun Chung wrote:
> > > On Fri, Oct 31, 2003 at 02:13:27AM +0000, Hysun Chung wrote:
> > > > On Thu, Oct 30, 2003 at 03:41:40PM +0800, Teh Kok How wrote:
> > > > > Hi;
> > > > > 	I am build the sox package now. In order to use the sunau
> > > > > /dev/audio device format, I do this:
> > > > >
> > > > > # ./configure --with-sun-audio --build=mipsel-unknown-openbsd
> > > > > # make
> > > > >
> > > > > 	However, the sunaudio.c is looking for <stropts.h> which is not in
> > > > > /usr/include.
> > > > >
> > > > > sunaudio.c:34: stropts.h: No such file or directory
> > > > > *** Error code 1
> > > > >
> > > > > Stop in /usr/ports/audio/sox/w-sox-12.17.3/sox-12.17.3.
> > > > > WG6000#
> > > > >
> > > > > 	Any idea how you solved this error before..?
> > > >
> > > > I built the standard port and used linux OSS dsp emulation.  Sorry
> > > > for not stating that in my original response. Here's the command I
> > > > use to record oggs:
> > > >
> > > > sox -t ossdsp -w -r 44100 -s -v 1.5 /dev/audio foo.ogg
> > > >
> > > > -Hysun
> > >
> > > Forgive me again, I goofed. I actually built the vorbis + mp3
> > > flavour of the port, like so:
> > >
> > > cd /usr/ports/audio/sox
> > > env FLAVOR="mp3 vorbis" make package
> > > sudo pkg_add /usr/ports/packages/i386/all/sox-12.17.4-mp3-vorbis.tgz
> > >
> > > Hope that works for ya.
> > > -Hysun
> > >
> > > > > Regards,
> > > > > TEH
> > > > >
> > > > > On Thursday 30 October 2003 13:44, Hysun Chung wrote:
> > > > > > On Thu, Oct 30, 2003 at 09:39:19AM +0800, Teh Kok How wrote:
> > > > > > > Hi;
> > > > > > > 	I am looking for an audio recorder application on OpenBSD
> > > > > > > (console). Does anyone out there have any experience with it?
> > > > > > >
> > > > > > > Regards,
> > > > > > > TEH
> > > > > >
> > > > > > I used cat on the raw device until I found that sox (in the ports
> > > > > > tree) can use the raw device as the input file.  Now I use sox to
> > > > > > create my mp3s and oggs directly, instead of using a raw file as
> > > > > > an intermediate.
> > > > > >
> > > > > > -Hysun