[Tutor] Problem recording large wav files with Snack

klappnase klappnase@freenet.de
Tue Jul 22 07:29:02 2003


On Thu, 17 Jul 2003 17:30:13 -0700 (PDT)
Danny Yoo <dyoo@hkn.eecs.berkeley.edu> wrote:

> 
> 
> On Thu, 17 Jul 2003, klappnase wrote:
> 
> > I am trying to develop some little sound applications for linux using
> > the snack toolkit. (I am far from being a "professional" programmer, but
> > just a beginner).
> >
> > I want to record large files to disk (whole sides of vinyl albums), so I
> > do something like:
> >
> > s = tkSnack.Sound(encoding="Lin16", frequency=44100, channels=2,
> > fileformat="WAV", byteorder="littleEndian,\
> > 			precision="double", file="xyz.wav")
> > s.record()
> 
> 
> Hi klappnase,
> 
> 
> I'm not too familiar with the tkSnack module, and I'm not sure if any of
> us here can help diagnose the problem; it sounds more like an operating
> systems issue more than anything else.  you may want to contact Snack's
> author, according to:
> 
>     http://www.speech.kth.se/snack/FAQ.html
> 
Thanks, I think I'll should try that.
> 
> We can, at least, see Python syntax errors... *grin* Are you sure that's
> not missing a quote sign here?
> 
>          fileformat="WAV", byteorder="littleEndian,\
>                                      ^^^^^^^^^^^^^^^
Oops!
Just a typo in the mail of course.
> 
> 
> [off-topic, sorta:
> 
>     If you are running on a Linux system, you may want to double check
>     that your hard drive is tuned to performance:
> 
>         http://linux.oreillynet.com/pub/a/linux/2000/06/29/hdparm.html
> 
>     Most Linux systems are very conservative in the way they use their
>     hard drives --- you may be running into a simple IO issue.
> ]
udma2, I think that should be sufficient, more is not possible anyway.
> 
> Good luck!
> 
Thanks again

Regards

Michael