【正文】
址等業(yè)務(wù) 。不久, Schwab 又開通了語音股票交易系統(tǒng)。 1996 年 9 月, Charles Schwab 開通了首個(gè)大規(guī)模商用語音識(shí)別應(yīng)用系統(tǒng):股票報(bào)價(jià)系統(tǒng)。對(duì)機(jī)器來說,識(shí)別系統(tǒng)也要利用這些方面的知識(shí),只是鑒于語音信號(hào)的多變性、動(dòng)態(tài)性、 瞬時(shí)性,語音識(shí)別技術(shù)與人類的大腦還有一定的差距。 語音識(shí)別過程實(shí)際上是一種認(rèn)識(shí)過程。明白語言的意義以便作出相應(yīng)的反應(yīng)。聲學(xué)模型的設(shè)計(jì)和語言發(fā)音特點(diǎn)密切相關(guān)。聲學(xué)模型通常由獲取的語音特征通過訓(xùn)練產(chǎn)生,目的是為每個(gè)發(fā)音建立發(fā)音模板。一個(gè)完整的語音識(shí)別系統(tǒng)可大致分為三部分: ( 1) 語音特征提取:目的是從語音波形中提取隨時(shí)間變化的語音特征序列。 計(jì)算機(jī)語音識(shí)別過程與人對(duì)語音識(shí)別處理過程基本上是一致的。語音識(shí)別是一門交叉學(xué)科,關(guān)系到多學(xué)科的研究領(lǐng)域,不同領(lǐng)域上的研究成果都對(duì)語音識(shí)別的發(fā)展作了貢獻(xiàn)。 另外系統(tǒng)還 采用單片機(jī)產(chǎn)生不同的頻率信號(hào)驅(qū)動(dòng)蜂鳴器來完成聲音提示,此方案能完成聲音提示功能,給人以提示的可懂性 不高 ,但在一定程度上能滿足要求,而且易于實(shí)現(xiàn),成本也不高。寄存器采用一片華邦 SPI flash 芯片 W25Q40AVSNIG,大小為 512Kbyte。同時(shí)也可以通過對(duì)寄 存器中 語音片段的調(diào)用,實(shí)現(xiàn)人機(jī)對(duì)話。主控 MCU 通過控制 LD3320 內(nèi)部寄存器以及 SPI flash 實(shí)現(xiàn)語音識(shí)別 和 對(duì)話。 基于單片機(jī)的智能語音識(shí)別系統(tǒng)設(shè)計(jì) (硬件部分) 系 別: 專 業(yè) 班: 姓 名: 學(xué) 號(hào): 指導(dǎo)教師: 基于單片機(jī)的智能語音識(shí)別系統(tǒng)設(shè)計(jì)(硬件部分 ) The Design of Intelligent Speech Recognition System Based on Singlechip Computer (HardWare) I 摘 要 本文 設(shè)計(jì) 一個(gè) 讓機(jī)器通過識(shí)別和理解過程把語音信號(hào)轉(zhuǎn)變?yōu)橄鄳?yīng)的文本或命令的高 技術(shù) 的語音識(shí)別系統(tǒng) 。 本語音識(shí)別系統(tǒng)以 LD3320 語音識(shí)別芯片 為 核心部件,主控 MCU 選用 STC10L08XE。通過 麥克風(fēng) 將聲音信息輸入 LD3320 進(jìn)行頻譜分析,分析后將提取到的語音特征和關(guān)鍵詞語列表中的關(guān)鍵詞語進(jìn)行對(duì)比匹配,找出得分最高的關(guān)鍵詞語作為識(shí)別結(jié)果輸出給 MCU, MCU 針對(duì)不同的語音輸入情況 通過繼電器 對(duì)語音命令所對(duì)應(yīng)的電器實(shí)現(xiàn)控制。 設(shè)計(jì)中 ,電源模塊采用 供電 , 主要控制及識(shí)別部分采用 穩(wěn)壓芯片,語音播放及繼電器部分采用 7812 為其提供穩(wěn)定的電流電壓。 系統(tǒng)聲音接收模塊采用的傳感器為一小型麥克風(fēng) —— 駐極體話筒 , 在它接收到聲音信號(hào)后會(huì)產(chǎn)生微弱的電壓信號(hào) 并送給 MCU。 關(guān)鍵詞 : 語音識(shí)別 LD3320 STC10L08XE 單片機(jī) 頻譜分析 II Abstract This paper designs a hitech speech recognition system which enables machines to transfer speech signals into corresponding texts or orders by recognizing and prehending. The centerpiece of the speech recognition system is LD3320 voice recognition chip, its master MCU is STC10L08XE. Master MCU achieve voice conversation by controlling the internal registers and SPI flash sound information is inputted into LD3320 by microphone to do spectrum analysis. After analyzing the voice characteristics extracted are pared and matched with the key words in the list of key the highest scores of key words found would be output to MCU as recognition results. MCU can control the corresponding electrical real of speech recognition for different voice input through the relays and can also achieve voice conversation through a call to voice clips in register. In the design, power module uses main control and identification part adopt voltage regulator chip,and 7812 is used to provide stable current and voltage for the part of voice broadcast and uses chip SPI flash W25Q40AVSNIG which is 512Kbyte. The sensor used in the speech reception module of the design is microphone,namely electrit receiveing the sound signal,it can produce a weak voltage signal which will be sent to MCU. In addition,the system also adopts a different frequency signals generated by microcontroller to drive the buzzer to plete the voice prompt, and this program can plete the voice program gives a relatively poor intelligibility Tips. However, to some extent,it can meet the requirements and is easy to implement and the cost is not high. Key words: Speech Recognition LD3320 STC10L08XE Singlechip puter Spectrum Analysis III 目 錄 摘要 .................................................................. I Abstract .............................................................. II 緒論 .................................................................. 1 1 設(shè)計(jì)方案 ........................................................... 5 系統(tǒng)設(shè)計(jì)要求 ..................................................... 5 總體方案設(shè)計(jì) ..................................................... 5 2 系統(tǒng)硬件電路設(shè)計(jì) ................................................... 6 電源模塊 ......................................................... 6 寄存器模塊 ....................................................... 6 控制單元模塊 ..................................................... 7 STC10L08XE 單片機(jī)簡(jiǎn)介 ........................................... 8 STC11/10xx 系列單片機(jī)的內(nèi)部結(jié)構(gòu) ................................ 10 聲音接收器模塊 .................................................. 10 聲光指示模塊 .................................................... 11 語音識(shí)別模塊 .................................................... 11 LD3320 芯片簡(jiǎn)介 ................................................ 11 功能介紹 ...................................................... 12 應(yīng)用場(chǎng)景 ...................................................... 13 芯片模式選擇 .................................................. 15 吸收錯(cuò)誤識(shí)別 .................................................. 16 口令觸發(fā)模式 .................................................. 17 關(guān)鍵詞的 ID及其設(shè)置 .............................................18 反應(yīng)時(shí)間 ....................................................... 18 3 系統(tǒng)軟件設(shè)計(jì) ...................................................... 20 系統(tǒng)程序流程圖 .................................................. 20 系統(tǒng)各模塊程序設(shè)計(jì) .............................................. 20 IV 主程序 ........................................................ 20 芯片復(fù)位 程序 .................................................. 27 語音識(shí)別 程序 .................................................. 28 聲音播放 程序 .................................................. 37 4 系統(tǒng)調(diào)試 .......................................................... 44 軟件調(diào)試 ........................................................ 44 上電調(diào)試 ...................................................... 44 讀寫寄存器調(diào)試 ................................................ 44 檢查寄存器初始值 .............................................. 44 硬件電路調(diào)試 .................................................... 45 硬件檢查 ...................................................... 45 硬件功能檢查 .................................................. 45 綜合調(diào)試 ........................................................ 46 結(jié)論 ................................................................. 47 致謝 ..........................