[Tutor] Problem recording large wav files with Snack
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Thu Jul 17 20:31:02 2003
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
We can, at least, see Python syntax errors... *grin* Are you sure that's
not missing a quote sign here?
fileformat="WAV", byteorder="littleEndian,\
^^^^^^^^^^^^^^^
[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.
]
Good luck!