简体   繁体   English

用Java服务器流音频的最快方法

[英]The fastest way to stream audio with java server



I want to develop a audio streaming server in java with human voice. 我想用人类的声音来用Java开发音频流服务器。
I would like to know if someone has already test the some technologies as httpserver (icecast, httpservlet as jetty) , rtspserver or webrtc. 我想知道是否有人已经测试了某些技术,例如httpserver(icecast,httpservlet作为jetty),rtspserver或webrtc。

I need something faster. 我需要更快的东西。
I think also to send stream with simple UDP and add some informations for client. 我认为也可以使用简单的UDP发送流并为客户端添加一些信息。
As audio format i think i'll use opus because it is optimized for human voice. 作为音频格式,我认为我会使用opus,因为它已针对人类语音进行了优化。

Thanks 谢谢

i checked some technologies as Kurento but finally my choice is: Encoding with opus Sending stream to clients with UDP server 我检查了一些技术作为Kurento,但最终我的选择是:使用opus进行编码使用UDP服务器将流发送到客户端

I would like to know if you ever worked for sending a stream with multiple thread. 我想知道您是否曾经使用多线程发送流。 Because i dont know how i can share encoded stream between threads. 因为我不知道如何在线程之间共享编码流。

Because i want to create 因为我想创造

1 Thread who listens connections from client and saves ip+port 1个线程,用于侦听来自客户端的连接并保存ip + port
1 Thread who captures micro and encodes the stream 1个线程,捕获微并编码流
1 Thread for each client for sending the encoded stream 每个客户端一个线程,用于发送编码流

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

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