简体   繁体   English

是否有概念证明或教程的实际示例,如何使两台计算机连接在一起以传输音频?

[英]Is there an actual sample of proof of concept or tutorial how to make 2 computers connect together to transmit audio?

I worked for week and read tons of pages and tried them, but I think I'm very unlucky. 我工作了一周,阅读了大量页面并进行了尝试,但我认为我很不幸。 What I want to do, it to have a permanent application on a computer which is stable and inside a subnet. 我想做的是,在稳定的子网内的计算机上拥有一个永久性应用程序。

The second computer, will be a notebook going anywhere and connecting to whatever network on the road... even a mobile shared connection. 第二台计算机将是一台笔记本电脑,可以随处移动并连接到道路上的任何网络,甚至是移动共享连接。

The objective is that it will take the notebook (full system sound) and transmit it to the permanent computer. 目的是获取笔记本(完整的系统声音)并将其传输到永久计算机。 Then the permanent computer will take another sound and send it back to the first computer on a second sound card. 然后,永久计算机将发出另一种声音,并通过第二个声卡将其发送回第一台计算机。 So it's full duplex. 因此,它是全双工的。 This part work perfectly already on local network. 这部分已经在本地网络上正常工作。 I need the link between the computers to work not locally. 我需要计算机之间的链接才能不在本地工作。

I don't even premashed answers if you don't want to. 如果您不想,我什至不预先拼凑答案。 If I ask help, it's because I'm out of solutions. 如果我寻求帮助,那是因为我没有解决方案。 After hundreds of pages read, Google was not my friend. 阅读数百页后,Google不再是我的朋友。 I don't know where to look anymore. 我不知道在哪里看了。

The full objective is to do remote interviews for our radio station. 完整的目标是对我们的广播电台进行远程采访。

We Tried all kind of TCP, UDP, Routing, Ports mix... But I shouldn't need does, since Anydesk and Team Viewer don't need this. 我们尝试了各种TCP,UDP,路由,端口混合...但是我不需要,因为Anydesk和Team Viewer不需要它。 They use Middle server in between. 他们之间使用中间服务器。 I can't find any sample about that. 我找不到有关此的任何示例。 I'm open to make a middle server. 我愿意做一个中间服务器。 PHP, HEROKU or Windows. PHP,HEROKU或Windows。

I don't want to use stuff like ICECast because they have to much latency. 我不想使用ICECast之类的东西,因为它们有很多延迟。 It's built for multiple connections. 它是为多个连接而构建的。 What I do is for PEER TO PEER, 1 to 1, connection only. 我所做的只是对等,一对一的连接。 Also, I have other thing my app does which is to open and close some sound volumes on the main computer and start some stats software. 另外,我的应用还有其他功能,即打开和关闭主计算机上的某些音量,然后启动一些统计软件。 Which is why I want something home made. 这就是为什么我想要自制的东西。

If I can be put on the right track, that would be awesome. 如果我能走上正确的道路,那就太好了。

Thank you a lot in advance for your help. 预先非常感谢您的帮助。

  1. The application on the 'permanent' computer should be of the type 'listener', a server application. “永久”计算机上的应用程序应为“侦听器”类型,即服务器应用程序。
  2. The other application, on the mobile computer, should be a 'client' that connects to the server application. 移动计算机上的另一个应用程序应该是连接到服务器应用程序的“客户端”。
  3. To make it possible to connect between them over the internet, configure port forwarding on your router. 为了使它们可以通过Internet连接,请在路由器上配置端口转发 This will allow to pass TCP / UDP communication from the WAN side to the internal LAN IP address that the listener is running on. 这将允许将TCP / UDP通信从WAN端传递到运行侦听器的内部LAN IP地址。 An important consideration to make here regarding is the port you choose for the port forwarding. 在此要考虑的一个重要注意事项是您为端口转发选择的端口。 Often, ISP block certain ports. ISP通常会阻止某些端口。 So, look up which ports they block, and don't use one of those for the WAN side. 因此,请查找它们阻止的端口,并且不要在WAN端使用其中之一。
  4. The client application should be able to connect to your WAN address on the port you have configured in the router. 客户端应用程序应该能够在路由器中配置的端口上连接到您的WAN地址。

Note: this is a starting point. 注意:这是一个起点。 It is wise to consider to encryption or even a VPN for the communication. 考虑对通信进行加密甚至是VPN是明智的。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM