基于单片机的语音存储与回放系统
- 格式:pdf
- 大小:170.81 KB
- 文档页数:3


基于单片机的语音存储与回放系统毕业设计1. 引言随着科技的不断发展,语音技术也得到了广泛应用。
如今,在很多领域,我们可以看到语音交互的身影。
语音存储与回放系统是语音技术的一个重要应用方向。
本文旨在讨论基于单片机的语音存储与回放系统的设计与实现。
2. 设计目标在开始设计语音存储与回放系统之前,我们首先明确系统的设计目标。
在该系统中,我们希望能够实现以下功能: 1. 采集语音信号并进行存储; 2. 实现语音信号的回放; 3. 提供用户友好的交互界面。
3. 系统设计3.1 硬件设计语音存储与回放系统的硬件设计是实现系统功能的基础。
这里我们选用单片机作为系统的核心控制器,其主要功能包括语音信号的采集、存储与回放。
1. 单片机选择:首先,我们需要选择适合语音处理的单片机。
常用的单片机型号有STM32、Arduino等。
选择单片机时要考虑其性能、成本和易用性等因素。
2. 语音输入与输出:为了实现语音信号的采集与回放,我们需要选择合适的语音输入输出设备,如麦克风和扬声器。
3. 存储器选择:在语音存储与回放系统中,我们需要选择适合存储语音信号的存储器。
可以选择外部存储器,如Flash、SD卡等。
3.2 软件设计语音存储与回放系统的软件设计包括系统的逻辑控制和交互设计。
1. 语音采集与存储:这一部分主要涉及音频采集和存储的算法。
需要设计合适的采样率、量化位数和编码方式等来满足存储与回放的需求。
2. 语音回放:回放语音的过程需要涉及音频解码和输出的算法。
需要设计合适的解码算法以及音频输出的放大电路。
3. 用户交互界面:为了方便用户操作,我们可以设计一个简单的用户交互界面,如按钮、LCD显示屏等。
用户可以通过界面进行语音的录制、回放和设置等操作。
4. 系统实现在完成系统设计后,我们可以开始系统的实现。
实现过程中需要进行硬件的连接和软件的开发。
1. 硬件连接:按照系统设计中的硬件设计要求,将单片机、麦克风、扬声器等硬件设备进行连接。
摘要当今,计算机技术带来了科研和生产的许多重大飞跃,微型计算机的应用已经渗透到生产、生活的各个方面。
单片微型计算机简称单片微机或单片机,又称为微控制器。
它体积小、价廉、功能强,适用范围越来越宽。
单片机在工业控制、自动检测、智能仪器、家用电器等领域的应用尤其突出。
本课题以凌阳SPCE061A单片机为主体,实现了语音的数字化存储与回放,整个系统分为录音、停止、和放音三种状态,状态的改变用按键K1\K2\K3控制。
存储器采用SPR4096,放大器采用NE5532,使用SPCE061A单片机自带的LineIN输入,性能良好的数字滤波器滤去音频信号(300~3400)频段以外的信号,经AD转换将音频信号转换为电信号,采用SACM-A2000的压缩算法,将压缩后的数据存储在SPR4096存储器中。
放音时再从SPR4096读取数据,利用凌阳SACM库提供的DVR函数进行录放,数模转换后经过放大驱动喇叭。
在8kHz的采样频率时,语音存储时间可以达到10s 以上,回放时语音失真小,音质良好。
软硬件的结合使该系统有合理的结构,性能指标基本达到要求。
关键词:SPCE061A SPR4096 数字滤波压缩编码语音ABSTRACTNowadays, computer science has brought about a lot of achievements in scientific research and in industry. The application of microcomputer has penetrated to all aspects of life and industry. Microcomputer is called singlechip for shot, or controller. Because of its small bulk, low price, strong function, the microcomputer is used more and more, especially in the industrial control, automatic detect, intelligent instrument, apparatus and so on.This task is based on the microcomputer SPCE061A of Sunplus. Digital memorization of voice and playback of voice are all realized in this system. All the system is composed of three states: record, playback and halt. The keys K1\K2\K3 are in charge of the change of the states. SPR4096 is used as the data memorizer. The microcomputer SPCE061A offers micin input. Digital filter which performance is all right is used to wipe off the noise. Audio frequency single is switched to the electric single via the conversion of AD. After amplified, it drives the trumpet. Voice memorization time can reach more than 10s at 8kHz sampling frequency. Quality of the playback voice is fine and distortion is low. Both software and hardware were combined together so that the system can work well. The tested data shows that the system is reliable and the performance of the system up to the design requirements.Key words: SPCE061A ; SPR4096; digital filter;第一章 SPCE061A单片机简介1.1 凌阳16位单片机介绍随着单片机功能集成化的发展,其应用领域也逐渐地由传统的控制,扩展为控制处理、数据处理以及数字信号处理(DSP,Digital Signal Processing)等领域。
基于51单片机的语音存储与回放系统设计基于51单片机的语音存储与回放系统设计Voice storage and playback system based on 51 microcontroller摘要摘要在当今的智能化仪器仪表和自动控制装置,添加语音功能可以提升友好的人机界面,方便用户操作。
在许多情况下,它需要语音合成,语音识别,语音存储和回放技术和单片机在一起。
传统的模拟语音处理系统使存储和声音的再现,但效果不太好。
在本文中,数字语音存储与回放系统采用了单片机STC89C51和数码语音芯片ISD2560。
单片机是该系统的控制中心,它主要是为了实现以下功能:重要的控制功能和选择鉴定;第二控制芯片ISD2560语音录制和播放过程中,存储和播放声音。
首先,我设计了这个电路系统的硬件,再其次是硬件电路书面记录,回放控制程序,最后,这个总结和展望的设计。
关键词:STC89C51单片机ISD2560语音芯片语音存储语音回放ABSTRACTIn the area of intelligent instruments and automatic control equipments, the system with the phonetic function can greatly increase the friendliness of the man-machine interface, and is also convenient for users to operate. In many situations, designers need to integrate the phonetic synthesis, the phonetic recognition and the phonetic storage and playback technology with the SCM.The common analog-signal digitalize processing system can realize the function of phonetic storage and playback. But the effects are not very good. This dissertation designs the digital phonetic system composed of flash micro-controller STC89C51 and digital audio chip ISD2560. SCM is the control center of the system, it is mainly to achieve the following functions: the keystroke identification and the function selection; phonetic storage and playback by using the digital audio chip ISD2560.Firstly, this dissertation designs the hardware circuit of the system. And then compiles the control program of record and playback. At last, the summary and prospects of the design was presented.Key words: STC89C51 ISD2560 phonetic storage phonetic playback目录摘要 ..................................................................................................................... ABSTRACT . (I)目录 .................................................................................................................. I I 绪论 . 0第一章整体系统的设计 (3)1.1 总体方案论证 (3)1.2 器件选择 (4) (4) (5)1.3 ISD2560语音芯片 (6)1.3.1 ISD2560的引脚功能 (7)1.3.2 ISD2560的操作模式 (9)1.3.3 ISD2560的地址空间 (10)1.3.4 ISD2560的应用电路 (10)1.3.5 电源电路 (12)1.4集成功率放大器芯片LM386 (12)1.4.1 LM386电子特性 (12)1.4.2 LM386的引脚说明 (13)第二章系统硬件设计 (14)2.1系统硬件电路总体设计 (14)2.2 STC89C51的外围电路设计 (14) (14) (15)2.3 语音电路设计 (16)2.4 功放电路设计 (17)2.5按键部分电路设计 (17)第三章系统软件设计 (19)3.1 主要变量说明 (19)3.2 主程序工作原理及流程图 (19)3.3 子程序流程图及代码 (21) (21) (23)结论 (25)致谢 (26)参考文献 (29)附录一 (31)附录二 (32)附录三 (33)绪论1课题研究背景及科学意义现如今有各种各样的智能化的仪器仪表以及自动化控制设备,增加语音功能可以提升友好的人机界面,对于用户的操作来说非常方便。