如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流? [英] How to catch and translate incoming audio stream in other languages for an iOS Client app using PJSIP?

查看:184
本文介绍了如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将语言转换器集成到基于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.

现在我面临以下问题:

  1. 如何在PJSip中捕获传入的音频流?
  2. 如何发送用户可以在其中收听的转换后的音频流 正常的语音通话?
  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 ?

请帮助.谢谢.

推荐答案

我发现捕获传入音频流的一种可能性是在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆