Never been to DZone Snippets before?

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 (See related posts)

py_s60 1.1.3 provide audio module which allow you to record sound.
   1  
   2  import e32, audio
   3  
   4  s = audio.Sound.open('C:\\test.amr')
   5  s.record()  # start recording
   6  e32.ao_sleep(5)  # do if for 5 seconds
   7  s.stop() # stop recording
   8  
   9  
  10  # the file is now created, ready to be played
  11  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.)

You need to create an account or log in to post comments to this site.


Click here to browse all 5551 code snippets

Related Posts