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

Snippets has posted 5883 posts at DZone. View Full User Profile

Recording Sound

  • submit to reddit
        py_s60 1.1.3 provide audio module which allow you to record sound.
import e32, audio

s ='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
Using this code, I can record sound longer than
the 1 minute limit by Nokia's 'Recorder' program.

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.)