如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流? [英] How to catch and translate incoming audio stream in other languages for an iOS Client app using PJSIP?
问题描述
我想将语言转换器集成到基于VoIP的iOS客户端应用程序中,该应用程序将根据用户的选择将实时传入的音频流转换为其他选定的语言,我正在使用PjSip开源库来支持VoIP呼叫.
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.
现在我面临以下问题:
- 如何在PJSip中捕获传入的音频流?
- 如何发送用户可以在其中收听的转换后的音频流 正常的语音通话?
- 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 ?
请帮助.谢谢.
推荐答案
我发现捕获传入音频流的一种可能性是在Conference.c中定义REC_FILE.
I found one possibility to catch the incoming audio stream could be to define REC_FILE in conference.c .
例如:#define REC_FILE"/mypath/myname.pcm".
For example: #define REC_FILE "/mypath/myname.pcm".
PJSIP将未格式化的帧(纯PCM数据)存储在给定的文件中.
PJSIP will store the frames unformatted (plain PCM data) in the given file.
这篇关于如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!