DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Recording Sound
py_s60 1.1.3 provide audio module which allow you to record sound.
import e32, audio
s = audio.Sound.open('C:\\test.amr')
s.record() # start recording
e32.ao_sleep(5) # do if for 5 seconds
s.stop() # stop recording
# the file is now created, ready to be played
s.play()
Using this code, I can record sound longer than the 1 minute limit by Nokia's 'Recorder' program. Update: It can record in 'wav', 'amr','au'. I can't play the file recorded with 'wav', though. It seems 6600 has the problem with uncompressed 16-bit wave. (It can play other wave files fine.)





