IP语音 [英] Voice over ip

查看:381
本文介绍了IP语音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,
使用c#.net

Hai,
How to send and receive audio file after successful log in from one client to another without the delay in speech using c#.net

推荐答案

,从一个客户端成功登录到另一个客户端后,如何在没有语音延迟的情况下如何发送和接收音频文件?延误.
您必须将语音流分配给数据包.每个数据包应使用某种编解码器(G.711,G.729,FFT)进行压缩,加密(如果相关),发送到另一端,解密,解码并最终播放.这些步骤中的每个步骤都需要时间.您不能刻不容缓地做到这一点.
这里有一些技巧供您实施,这样您的应用程序就可以了.
1.通过UDP使用RTP,不要使用TCP
2.使用抖动缓冲

我的建议是在开始编码之前先阅读一些文献.
There is no such a thing - without delays.
You have to devide the voice stream to packets. Each packet shall be compressed with some codec (G.711, G.729, FFT), encrypted (if relevant), sent to the other side, decrypted, decoded and finally played. Everyone of those steps takes time. You cannot do it without delay.
Here are few tips for you to implement, so that your app will be fine.
1. Use RTP over UDP, don''t use TCP
2. Use jitter buffer

My advice is to read some literature before you start coding.


这篇关于IP语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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