简体   繁体   English

将音频从一台设备传输到另一台设备

[英]Stream audio from one device to another

I am looking to create a project where user A will stream audio and user B will receive it, I am not looking to upload the audio into a WebServer and then Download it. 我希望创建一个项目,用户A将流式传输音频,而用户B将接收该音频,而不是将音频上传到WebServer然后下载。 I have done quite a lot of research but I didn't come to a final design. 我已经做了很多研究,但是我没有进行最终设计。 I am asking for guides and not for you to design my application, where am I supposed to start with such a project? 我要的是指南,而不是您的设计我的应用程序,我应该从哪里开始这样的项目?

I have a design in mind but not sure how feasible is it with IOS xamarin. 我有一个设计思路,但不确定IOS xamarin是否可行。 I would like to know your thoughts on this design. 我想知道您对此设计的想法。

  1. User A will choose audio file from their playlist 用户A将从他们的播放列表中选择音频文件
  2. Then I want to decode that audio into bits (Packets) and then send packets over to User B 然后,我想将该音频解码为比特(数据包),然后将数据包发送给用户B
  3. User B will receive these packets and then encode them back to be an audio file 用户B将收到这些数据包,然后将它们编码回为音频文件

I am looking to achieve this using HTTP protocol. 我正在寻求使用HTTP协议来实现这一目标。 This is what I was able to get to. 这就是我所能达到的。 I am welcoming any ideas or guides as to where I should start with such a project. 我欢迎任何有关从这样的项目开始的想法或指南。

PS I don't mind switching to swift/objective-C if it's not possible with Xamarin. PS:如果Xamarin无法实现,我不介意切换到swift / objective-C。

You can copy the voice transferring concept from the Internet calling concept. 您可以从Internet呼叫概念复制语音转移概念。 You will get the idea regarding how the voice is being transferred along with encryption and decryption of the packets. 您将获得有关语音如何传输以及数据包加密和解密的想法。

You can get a little brief from here and here . 您可以从这里这里得到一些简短的信息

Once you can get the hang of it, you can easily switch with the audio files which you wants to play. 一旦掌握了窍门,就可以轻松切换要播放的音频文件。

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

相关问题 C#/Windows:从扬声器播放一个音频文件,从“默认音频设备”(耳机/耳机)播放另一个音频文件? - C#/Windows: Play one audio file from speaker, and another audio file from the 'default audio device' (headphones/headset)? 从一个 stream 复制到另一个? - Copying from one stream to another? 从HTML5设备中的线路创建实时音频流 - Create live audio stream from line in device for HTML5 如何将音频流从输出设备发送到输入设备? - How can I send an audio stream from the output device to an input device? 如何从另一个音频波中减去一个音频波? - How to subtract one audio wave from another? 将应用程序的音频重新路由到另一个音频设备 - Rerouting applications' audio to another audio device 401 来自一台设备的未经授权的错误,但来自另一台设备的成功 - 401 Unauthorised error from one device but success from another device 如何将 stream 音频传输到特定的 output 设备? - How to stream audio to a specific output device? 从一台设备到另一台设备的表面上的StretchRectangle - StretchRectangle on surface from one device to another 通过蓝牙和 32feet lib 将音频从设备传输到计算机 (Windows 10) - Stream audio from device to computer (Windows 10) via bluetooth & 32feet lib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM