Enviroments:
PythonForS60_1_4_0_3rdEd.sis
PythonScriptShell_1_4_0_3rdEd.sis
ensymble_python2.2-0.23.py
Device:
V 20.0.0.15
13-11-07
RM-159
Nokia N95(01.01)
Problems:
I made an script by python to record conversation while call is connected.
It works find if I execute this script from shell.
The problems is, if I make it a sis file by ensymble, it stop working.
Please refer the code: In shell enviroment, it could works well and it went
to end of code, the log file will writen, however,If I compile it to sis
file, the code will not executing in s.record().
I try to capture the exception, nothing is given.Only the first sentence
'sound file opening' is writen to logfile
def audioupload (self):
s = audio.Sound.open('c:\\Data\\call.amr')
logfile = open ('c:\\Data\\log.txt', 'a')
logfile.write('sound file opening')
logfile.close()
try:
s.record()
logfile = open('c:\\Data\\log.txt', 'a')
logfile.write('sound file recording')
logfile.close()
except:
logfile = open('c:\\Data\\log.txt', 'a')
logfile.write(sys.exc_type, ":", sys.exc_value)
logfile.close()
while (self.record_flag==True):
e32.ao_sleep(3) # do if for 5 seconds
s.stop()
s.close()
Jukka Laurila
audio
None
Public
|
Date: 2008-07-25 23:21
|
|
Date: 2008-07-25 21:22
|
|
Date: 2008-07-25 16:30
|