漫游语音识别技术——带你走进语音识别技术的世界

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 前有古人,后有小王,大家好,我是你们爱思考的小王学长,今天我来带大家漫游一下当下发展火热的语音识别技术,通俗易懂、干货满满、一定要学到最后呦!","attrs":{}}]},{"type":"horizontalrule","attrs":{}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 一看到语音识别,不知道大家有没有想到智能语音交互助手,苹果的“Siri”、华为的“小E”、OPPO的“小欧”、小米的“小爱同学”,总有一款你接触过,还有目前发展火热的智能音箱“小度小度”、天猫精灵、微信的“语音转文字功能”、“智能家电”、车联网人机交互系统,这些都是依靠语音识别技术来实现的。","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/25/2543cc08a40e6fd5bb17f59bfc91f73d.png","alt":null,"title":"应用场景","style":[{"key":"width","value":"50%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 平时我们用的电脑大都是微软的windows系列,其中的语音助手小娜更是被大家所熟知。那么究竟什么是语音识别技术呢?","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"一、什么是语音识别技术?","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 语音识别是将人说出的话转换为文本的技术,也被称为","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"自动语音识别","attrs":{}},{"type":"text","text":"(Automatic Speech Recognition, ASR),简单来说就是与机器进行交流,让机器明白你说的话是什么意思。用更为广义的概念就是把人类发出语音到计算机理解人类所说内容为止的所有技术手段统称为语音识别。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 用专业术语来说,就是让机器通过识别和理解过程把语音信号转变为相应的文本或命令的高技术。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 在这里可能会有人问","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}}],"text":"语音识别和自然语言处理","attrs":{}},{"type":"text","text":"(NLP)有什么区别呢,语音识别是自然语言处理的一项比较基础的分支范畴。很多情况下,你得先让机器知道你在说什么,才能进一步让机器去理解和做出特定的反应。其他分支范畴有机器翻译、搜索、摘要、问答等等。用一句话说就是语音识别技术是自然语言处理的一部分、一个分支。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 好了,我们接着漫游语音识别技术,我们知道了语音识别的简单概念,接下来简单了解下语音识别的历史。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"二、语音识别的历史","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 语音识别自计算机诞生(","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"20世纪50年代","attrs":{}},{"type":"text","text":")以来,就一直是一个人类梦寐以求的技术。在以前的科幻电影中,人类就是用语音向计算机传达指令的。在1968年上映的美国电影《2001太空漫游》中,宇宙飞船上搭载的计算机HAL9000就是通过语音与乘务员交流的。而从1966年播放至今的美国电视剧《星际迷航》中,主人公只要用语音询问计算机就可以得到准备探索的星球的数据。自计算机被发明之后,人类就坚信通过语音来驱动计算机的时代终会到来。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 语音识别的研究正式开始于","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"20世纪60年代","attrs":{}},{"type":"text","text":",这时期人们曾尝试提取语音的频谱图0与音素2之间的关联规则。1970 年在大阪举办的世界博览会上就展出过基于声谱图工作的打字机原型。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 进入","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"20世纪70年代","attrs":{}},{"type":"text","text":",人们研究出了动态规划( Dyamic Pogramming,DP)匹配方法。该方法能够将输人语音与样本语音的各自特征,按时间轴进行伸缩、匹配。基于这个技术,人们成功地将包含少量单词的短句的识别速度提高了一大截儿。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" ","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":" 20世纪90年代","attrs":{}},{"type":"text","text":"以后,基于统计方法的语音识别成为主流,市面上出现了面向普通用户的计算机听写软件,可以将输人的语音转换成文本输出。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"三、语音识别的原理","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 从20世纪80年代开始,现在语音识别采用模式识别的基本框架,分为数据准备、信号处理、特征提取、模型训练、测试应用这5个步骤,为了方便大家理解,特意画了流程图,如图所示:","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/f2/f2a0bb2378ae6c88efa6310847aee82e.jpeg","alt":null,"title":"语音识别处理流程","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 此图是为了方便大家理解语音识别的大致识别处理流程:","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":" 第一步 声音信号采集","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 首先,我们需要进行语音信号采集,也就是俗话说的录音,由我们手机里或者电脑等电子设备里所带的麦克风、语音采集模块把声音存储下来。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":" 第二步 声音信号处理","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 大家应该知道声音实际上是一种波。常见的mp3、wmv等格式都是压缩格式,必须转成非压缩的纯波形文件来处理,比如Windows PCM文件,也就是俗称的wav文件。wav文件里存储的除了一个文件头以外,就是声音波形的一个个点了。下图是波形的一个示例:","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/98/98d8724fc59efbb43770176cb407dffb.png","alt":null,"title":"声音波形图","style":[{"key":"width","value":"25%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 信号处理分为降噪处理和预处理两部分,我们采集到的声音数据里包含大部分噪声和无用的声音频段,先利用谱减法等降噪处理方法去噪,留得有用的声音信号,简单去噪对比图如下所示:","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/c3/c31056677cc849c588abbd7f8f2f920d.png","alt":null,"title":"去噪前","style":[{"key":"width","value":"50%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/d6/d61d47dbfbe0762e9296d52cc914dee0.png","alt":null,"title":"去噪后","style":[{"key":"width","value":"50%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 然后利用预加重等","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"预处理手段","attrs":{}},{"type":"text","text":"使得想识别出的语音信号特征变得更加明显。在预处理部分还有分帧加窗和端点检测,目的是移除信号当中的直流偏置分量和一些低频噪声大家先明白是为了方便下一步更准确的提取特征参数就好,下一篇我会专门给大家讲解相关专业术语的含义。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":" 第三步 特征提取","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 特征提取就是使用计算机提取声音信号中属于特征性的信息的方法及过程。举个例子,我说:“我喜欢你”,在语音识别过程中,会把文字变成编码的形式,并以音节、音素等分开,把wo这个字识别出来,在音频波纹中提取w和o就是相当于特征提取。","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/65/654ca4e73cb539f0a9115e97d9923ee9.jpeg","alt":null,"title":"连续语音识别框架图","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":" 第四步 分类识别","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" ","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":" 分类识别","attrs":{}},{"type":"text","text":"就是利用语音识别系统根据对输入语音的限制加以分类。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 从说话者与识别系统的相关性考虑可以将识别系统分为3类:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" (1) 特定人语音识别系统:仅考虑对于专人的话音进行识别;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" (2) 非特定人语音系统:识别的语音与人无关,通常要用大量不同人的语音数据库对识别系统进行学习;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" (3) 多人的识别系统:通常能识别一组人的语音,或者成为特定组语音识别系统,该系统仅要求对要识别的那组人的语音进行训练。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"语音识别技术主要分为三大类","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"第一类是","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"模型匹配法","attrs":{}},{"type":"text","text":",包括矢量量化(VQ) 、动态时间规整(DTW)等;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"第二类是","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"概率统计方法","attrs":{}},{"type":"text","text":",包括高斯混合模型(GMM) 、隐马尔科夫模型(HMM)等;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":1,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"第三类是","attrs":{}},{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"辨别器分类方法","attrs":{}},{"type":"text","text":",如支持向量机(SVM) 、人工神经网络(ANN)和深度神经网络(DNN)等以及多种组合方法。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 在分类识别方法这块,有传统算法模型HMM等,也有当今发展火热的深度学习、机器学习算法SVM等等,大家对算法感兴趣的可以自己去搜索一下,也可以跟我留言,我会以通俗易懂的方式带大家学习相关知识的哦!","attrs":{}}]},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/3a/3a0420a8218ac1865b4a8bc832eb3b78.png","alt":null,"title":"语音编码解码","style":[{"key":"width","value":"50%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" 最后,总结一下,语音识别其实就是一个先编码后解码的过程,信号处理和特征提取就是编码的过程。换句话说,就是一种基于语音特征参数的模式识别,即通过学习,系统能够把输入的语音按一定模式进行分类,进而依据判定准则找出最佳匹配结果。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"  ","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"四、语音识别主要在线开发平台","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1、科大讯飞语音","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2、百度语音","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"3、Microsoft Speech API","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"4、Google Speech API","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"5、IBM viaVoice","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"6、Nuance NVP","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" ","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"五、语音识别的学习干货","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"size","attrs":{"size":12}},{"type":"strong","attrs":{}}],"text":"书籍","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"《图解语音识别》","attrs":{}},{"type":"text","text":"荒木雅弘 (作者) 陈舒扬 , 杨文刚 (译者)","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这本书对于小白特别友好,很基础,以图解的形式让大家轻松入门。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"《解析深度学习:语音识别实践》","attrs":{}},{"type":"text","text":",俞栋、邓力著。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这本书算是中文写的比较好的教程了,内容非常新,而且深度学习的篇幅很大,喜欢算法的同学推荐这本。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"《Spoken Language Processing-A Guide to Theory, Algorithm and System Development》","attrs":{}},{"type":"text","text":",黄学东等著。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这本书基本上是ASR传统方法的大全了,无论理论还是工程实践都有相当大的篇幅。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"size","attrs":{"size":12}},{"type":"strong","attrs":{}}],"text":"教程","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"underline","attrs":{}}],"text":"学有余力","attrs":{}},{"type":"text","text":"的同学可以学习以下教程:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"http://tts.speech.cs.cmu.edu/courses/11492/schedule.html","title":null,"type":null},"content":[{"type":"text","text":"http://tts.speech.cs.cmu.edu/courses/11492/schedule.html","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Speech Processing。CMU的这个教程主要包含ASR(Automatic Speech Recognition)、TTS(Text To Speech)和SDS(Spoken Dialog Systems)等三方面的内容。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"http://www.cs.cmu.edu/~awb/","title":null,"type":null},"content":[{"type":"text","text":"http://www.cs.cmu.edu/~awb/","attrs":{}}]},{"type":"text","marks":[{"type":"color","attrs":{"color":"#555666","name":"user"}}],"text":" ","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"苏格兰计算机科学家,语音处理专家,他的主页上有好多Speech、NLP方面的教程。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"http://www.inf.ed.ac.uk/teaching/courses/asr/index.html","title":null,"type":null},"content":[{"type":"text","text":"http://www.inf.ed.ac.uk/teaching/courses/asr/index.html","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Automatic Speech Recognition。这个课程至少从2012年就开始了,每年都有更新。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"作者介绍","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"王凯,计算机在读硕士,两年音视频学习开发经验,主攻音频语音识别方向,对 NLP、深度学习、神经网络、数学建模、音视频编解码技术有一定研究和实践经验。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":" ","attrs":{}}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章