基于Android的网络电话软件设计
发布时间:2018-03-28 19:17
本文选题:语音编码 切入点:电话信令 出处:《哈尔滨工业大学》2014年硕士论文
【摘要】:随着科学技术的进步,电子产品的成本和价格不断下调,智能终端已经深入了人们的生活,成为了日常工作学习中不可缺少的工具,而Android系统依托开放共赢的理念以系统开源的形式快速地占领了智能终端市场的绝大份额,地位越来越重要。针对Android系统良好的应用前景,本课题将Android平台作为实现平台。近些年,电话信令技术、网络技术、多媒体技术、语音编解码技术、网络穿透技术不断进步,同时互联网应用迅速兴起,网络电话在兼有良好技术基础及广阔的市场应用前景下得到了快速的发展,在工作生活中越来越多的开始取代传统电信网络通信。本文的研究内容便为基于Android的网络语音通话软件设计。开发出具有实用价值的通信软件为实验室后续在智能家居领域的进一步拓展具有实质性的意义。系统由客户端和服务器两部分组成。客户端主要包括语音信号处理及传输、电话信令SIP、NAT网络穿透三个模块,服务器主要完成用户上线注册、用户之间寻址以及用户注册的功能。本文工作的主要内容如下:设计实现了语音信号处理及传输过程。包括语音的采集、编码、发送、接收、解码及播放六个部分,每部分使用独立的线程完成。首先调用Android平台对语音信号进行采集,将采集到的语音信号流交给ILBC编码库进行编码,对编码完成的语音数据即时交给发送线程使用socket技术传输给指定地址,接收线程则通过socket技术监听指定端口号接收语音数据,并将接收的数据即时交给解码线程进行解码,播放线程将已解码数据即时播放。设计实现了SIP信令客户端。使用Android系统自带的API进行SIP信令客户端的开发,客户端主要实现有用户信息注册及保存、通话的发起、来电接收的基本功能。设计实现了SIP基本功能服务器。使用开源服务器代码架设了用于SIP通话的服务器,基于该服务器开发了用户管理的软件界面,实现了对用户简易注册及删除的基本管理功能。经过实际测试,良好的实现了语音信号的处理及传输过程,在局域网之内语音通话质量清晰且延时感不明显,SIP客户端实现了SIP服务器的登录,能够给指定SIP用户建立SIP通话,服务器实现了对用户的注册及注销过程。
[Abstract]:With the progress of science and technology, the cost and price of electronic products have been continuously reduced. Intelligent terminals have become an indispensable tool in daily work and learning. The Android system, relying on the concept of open and win-win, has occupied the vast majority of the intelligent terminal market rapidly in the form of open source system, and its status is becoming more and more important. In view of the good application prospects of Android system, In recent years, the telephone signaling technology, network technology, multimedia technology, voice coding and decoding technology, network penetration technology, the rapid rise of Internet applications, Internet telephony has developed rapidly with both good technical foundation and broad market application prospects. More and more people begin to replace the traditional telecommunication network communication in the work life. The research content of this paper is the design of the network voice communication software based on Android. The system consists of two parts: the client and the server. The client mainly includes voice signal processing and transmission. Telephone signaling SIPN Nat network penetrates three modules, the server mainly completes the subscriber on-line registration. The main contents of this paper are as follows: the design and implementation of speech signal processing and transmission process, including voice acquisition, coding, sending, receiving, decoding and playing six parts, Each part is completed by independent thread. Firstly, the Android platform is called to collect the speech signal, and the stream of the collected speech signal is given to the ILBC coding library for coding. On the other hand, the encoded voice data is immediately transferred to the sending thread using socket technology to receive the specified address, while the receiving thread listens to the specified port number to receive the voice data through socket technology, and the received data is immediately handed over to the decoding thread for decoding. The playback thread plays the decoded data instantly. The SIP signaling client is designed and implemented. The SIP signaling client is developed by using the API which comes with the Android system. The client mainly realizes the registration and saving of the user information and the initiation of the call. The basic function of receiving calls. The basic function server of SIP is designed and implemented. The server for SIP calls is set up by using open source server code, and the software interface of user management is developed based on this server. The basic management function of simple registration and deletion of users is realized. After practical test, the process of speech signal processing and transmission is well realized. In the LAN, the voice call quality is clear and the delay sense is not obvious. The client realizes the login of the SIP server, which can set up the SIP call for the designated SIP user, and the server realizes the process of registering and deregistration the user.
【学位授予单位】:哈尔滨工业大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TN916.5;TP311.52
【参考文献】
相关期刊论文 前3条
1 谢少武;从PSTN电话向IP电话的演进[J];广东通信技术;2001年S1期
2 倪维桢;语音编码综述[J];数字通信;1998年02期
3 李志军,华继钊;中低速率语音波形编码[J];现代电子技术;2002年01期
,本文编号:1677704
本文链接:https://www.wllwen.com/kejilunwen/wltx/1677704.html