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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

31192, Tajonar, Navarra, SPAIN

  Map:    Veridas

  Web:    www.veri-das.com

  Email:  vgoni@xxxxxxxxxxxx

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

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux