Interface for capture and playback of audio frames using callbacks with PJSUA2 on python3.7 or higher.

MK
Malar Kannan
Sun, Mar 8, 2020 8:38 AM

Hi All,
I am trying to capture and play the audio frames directly
manipulating media using pjsua2, I looked for it in the Faqs but it seem,
it requires working with implementing pjmedia_struct [1] which isn't
possible for me as the rest of my pipeline is written in python and there
is no high level interface for doing it using pjsua2.
I am looking for a high level interface in pjsua2 similar to an old
approach found at [2] . It still works but uses the unsupported
pjsua-python bindings. There were issues with this old method like
unpredictable frame capture failures on some calls and race conditions on
multiple audio calls etc.
Any suggestions and help will be appreciated.

[1] https://trac.pjsip.org/repos/wiki/FAQ#audio-man
[2]
http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2013-March/036303.html

Thanks and Regards,
Malar.

Hi All, I am trying to capture and play the audio frames directly manipulating media using pjsua2, I looked for it in the Faqs but it seem, it requires working with implementing pjmedia_struct [1] which isn't possible for me as the rest of my pipeline is written in python and there is no high level interface for doing it using pjsua2. I am looking for a high level interface in pjsua2 similar to an old approach found at [2] . It still works but uses the unsupported pjsua-python bindings. There were issues with this old method like unpredictable frame capture failures on some calls and race conditions on multiple audio calls etc. Any suggestions and help will be appreciated. [1] https://trac.pjsip.org/repos/wiki/FAQ#audio-man [2] http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2013-March/036303.html Thanks and Regards, Malar.