Is it possible to use pjsua2 in python to use AudioMedia Memory/Buffer-based Playback Port in real time?

VG
Victor Goñi
Tue, Dec 10, 2019 8:09 AM

Hi everyone.

I'm using pjsua2 from pjproject v2.9 to develop a SIP integration client.
According with the PJSUA2 Media documentation, from python is only possible
to:

  • Capture device’s AudioMedia
  • Playback device’s AudioMedia
  • Get Call AudioMedia
  • Play a Wav (pj::AudioMediaPlayer)
  • Record a Wav (pj::AudioMediaRecorder)

It seems in C this is possible using media port (
https://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__PORT.htm), in
python do no exist MediaPort to try to bypass the callback.

For performance, I'm interested on take the raw binary data from frames for
make audio processing. Is it possible to manage the audio frame in memory
without record a Wav file? If not, It would be supported in the future?

I explain the problem with references to the documentation in this
StackOverflow post:
https://stackoverflow.com/questions/59250633/is-it-possible-to-use-pjsua2-in-python-to-use-audiomedia-memory-buffer-based-pla

Thanks in advance.


Víctor Goñi Sanz

Tecnología | Biometría de Voz

Veridas Digital Authentication Solutions S.L.

Polígono Industrial Talluntxe II, Calle M-10
https://maps.google.com/?q=Calle+M-1031192,+Tajonar,+Navarra,+SPAIN&entry=gmail&source=g

31192, Tajonar, Navarra, SPAIN
https://maps.google.com/?q=Calle+M-10,31192,+Tajonar,+Navarra,+SPAIN&entry=gmail&source=g

Map:    Veridas https://goo.gl/maps/4XmLETbxigJ2

Web:    www.veri-das.com

Email:  vgoni@das-nano.com

Phone: +34 948 24 62 95
Mobile: +34 622 226 276

Hi everyone. I'm using pjsua2 from pjproject v2.9 to develop a SIP integration client. According with the PJSUA2 Media documentation, from python is only possible to: - Capture device’s AudioMedia - Playback device’s AudioMedia - Get Call AudioMedia - Play a Wav (pj::AudioMediaPlayer) - Record a Wav (pj::AudioMediaRecorder) It seems in C this is possible using media port ( https://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__PORT.htm), in python do no exist MediaPort to try to bypass the callback. For performance, I'm interested on take the raw binary data from frames for make audio processing. Is it possible to manage the audio frame in memory without record a Wav file? If not, It would be supported in the future? I explain the problem with references to the documentation in this StackOverflow post: https://stackoverflow.com/questions/59250633/is-it-possible-to-use-pjsua2-in-python-to-use-audiomedia-memory-buffer-based-pla Thanks in advance. _________________________________________________________ *Víctor Goñi Sanz* Tecnología | Biometría de Voz Veridas Digital Authentication Solutions S.L. Polígono Industrial Talluntxe II, Calle M-10 <https://maps.google.com/?q=Calle+M-1031192,+Tajonar,+Navarra,+SPAIN&entry=gmail&source=g> 31192, Tajonar, Navarra, SPAIN <https://maps.google.com/?q=Calle+M-10,31192,+Tajonar,+Navarra,+SPAIN&entry=gmail&source=g> Map: Veridas <https://goo.gl/maps/4XmLETbxigJ2> Web: www.veri-das.com Email: vgoni@das-nano.com Phone: +34 948 24 62 95 Mobile: +34 622 226 276