How to catch and translate incoming audio stream in other languages for an iOS Client app using PJSIP?

陌路散爱 提交于 2019-12-08 13:04:11

问题


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 :

  1. How to catch the incoming audio stream in PJSip ?
  2. How to send the converted audio stream which user can listen like in normal audio call ?

Please help.Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/31023274/how-to-catch-and-translate-incoming-audio-stream-in-other-languages-for-an-ios-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!