I am trying to use create a recorder object with the python API of PJSUA.
I must admit I am stumped. I took the call.py in the example python tutorials: http://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/python/samples/call.py
I tried to add this to the main try body after lib.start()
,
rec = lib.create_recorder(self, "/home/user1/Desktop/a.wav" ) # this is what is causing the trouble
rec1 = lib.recorder_get_slot(self, rec )
but Eclipse is complaining about "Lexical error at line 81, column 13. Encountered:"\u200b" (8203) after : ""
I then added
pj.Lib.instance().conf_connect(call_slot, lib.recorder_get_slot(self, rec))
inside the on_media_state
method inside the MyCallCallback
class.
I tried the solution here, but at least at first taught there are no strange characters randomly appearing.
What am I doing wrong? and what exactly is a lexical error in this context?