I want to integrate language converter in VoIP based iOS client app which will translate real time incoming audio stream to other selected languages based on user choice, I am using PjSip open source library to support VoIP Calls.
For language translation I want to use speech to text and text to speech open source library.
Now I am facing following issues :
- How to catch the incoming audio stream in PJSip ?
- How to send the converted audio stream which user can listen like in normal audio call ?
Please help.Thanks.
I found one possibility to catch the incoming audio stream could be to define REC_FILE in conference.c .
For example: #define REC_FILE "/mypath/myname.pcm".
PJSIP will store the frames unformatted (plain PCM data) in the given file.