鉴于大家对电子数电单片机十分关注,我们编辑小组在此为大家搜集整理了“单片机的语音存储与重放的研究”一文,供大家参考学习
论文编号:JD800 论文字数:5852,页数:20
单片机的语音存储与重放的研究
摘 要
本课题以凌阳SPCE061A单片机为主体,实现了语音的数字化存储与回放,整个系统分为录音,停止录音和播放语音三种状态,状态的改变用按键S1S2S3控制。存储器采用W29C040,音频功放采用SPY0030,使用SPCE061A单片机自带的LineIN输入,性能良好的数字滤波器滤去音频信号(300~3400HZ)频段以外的信号,经AD转换将音频信号转换为电信号,采用SACM-A2000的压缩算法,将压缩后的数据存储在W29C040存储器中。放音时再从W29C040读取数据,利用凌阳SACM库提供的DVR函数进行录放,数模转换后经过放大驱动喇叭。在8kHz的采样频率时,语音存储时间可以达到4分多钟,回放时语音失真小,音质良好。软硬件的结合使该系统有合理的结构,性能指标基本达到要求。
关键词:SPCE061A;W29C040;语音录放
Single-chip voice storage and playback of the study
Abstract
Sunplus SPCE061A subject to the single-chip microcomputer as the main body, a digital voice storage and playback, the whole system is divided into audio, stop, and playing three states, with key changes in the state of control S1S2S3. Memory used W29C040, audio power amplifier using SPY0030, the use of single-chip built-in SPCE061A input LineIN, good performance of the digital filters least squares audio signal (300 ~ 3400) outside the signal band, the audio signal AD conversion will be converted to electrical signals, using the SACM-A2000 compression algorithm to compress data stored in memory W29C040. Playback when the W29C040 to read data from the use of libraries provided by SACM Sunplus DVR playback function, digital-to-analog conversion drive through speakers to enlarge. At 8kHz sampling frequency, voice storage time of 4 minutes, when the voice playback distortion small, good sound quality. The combination of hardware and software so that the system has a reasonable structure, the basic performance indicators to meet the requirement.
Key words: SPCE061A; W29C040; Voice Recorder
目录
摘 要 I
Abstract II
1 引言 1
2 系统总体方案 1
3 系统硬件设计 3
3.1 单片机 3
3.2 SPCE061A音频录入与播放的外围连接 4
3.3 SPCE061A与W29C040的硬件连接 5
3.4 按键部分 5
3.5 音频录入部分 6
3.6 音频输出部分 6
4 系统软件设计 7
4.1向系统写入语音数据 7
4.2从系统读出语音数据并播放。 10
5 结束语 12
参考文献 13
谢 辞 14
附 录 16