简体   繁体   English

如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流?

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

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. 我想在基于VoIP的iOS客户端应用程序中集成语言转换器,它将根据用户的选择将实时传入的音频流转换为其他选定的语言,我正在使用PjSip开源库来支持VoIP呼叫。

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 ? 如何在PJSip中捕获传入的音频流?
  2. 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 . 我发现捕获传入音频流的一种可能是在Conference.c中定义REC_FILE。

For example: #define REC_FILE "/mypath/myname.pcm". 例如:#define REC_FILE“ /mypath/myname.pcm”。

PJSIP will store the frames unformatted (plain PCM data) in the given file. PJSIP将未格式化的帧(纯PCM数据)存储在给定文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在来电时使用 pjsip 唤醒 iOS 应用程序 - How to wake iOS apps when incoming calls comes using pjsip 如何在iOS的PJSIP的on_incoming_call函数中进行音频/视频通话并获取通话类型? - How to make audio/video calls and get the call type in on_incoming_call function in PJSIP in iOS? 如何在iOS中显示pjsip传入视频? - How to display pjsip incoming video in iOS? 在iOS应用中集成pjsip - Integrate pjsip in iOS app iOS:如何将音频数据从客户端流传输到服务器? - iOS: How to stream audio data from client to server? 如何为 ios 应用说明添加其他语言的本地化 - How to add other languages' localization for ios app description 如何在ios中使用pjsip进行通话录音? - How to perform call recording using pjsip in ios? 应用程序在使用 PJSIP 连续暂停和启动视频 stream 时崩溃 - App is getting crash on continuous pausing and starting video stream using PJSIP iOS:是否可以使用HLS将音频从iOS客户端流传输到服务器,如果可以,如何? 如果没有,如何从iOS流到Red5 RTMP服务器? - iOS: Is it possible to stream audio from iOS client to server using HLS and if so, how? If not, how can I stream from iOS to a Red5 RTMP server? 如何在 iOS 应用中播放 m3u 音频流 - How to play m3u audio stream in iOS app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM