当前位置:网站首页>Chapter II use of syn6288 speech synthesis module
Chapter II use of syn6288 speech synthesis module
2022-07-16 06:35:00 【Bi sheda escape】
SYN6288 Speech synthesis module is a module for broadcasting sound , At present, most of the human-computer interaction work of the graduation project is entrusted to OLED、LCD Wait for the screen to display , If you can use voice broadcast instead of screen display , Or participate in human-computer interaction with screen display , Then your design effect will be more novel .SYN6288 The method of using speech synthesis module is very simple , The following figure is one I often use SYN6288 Speech synthesis module , I won't show the electronic components on the back , Interested students can learn about it through the information link below . In the figure ,SYN6288 Voice synthesis module lead out 7 One pin , But we only use four of them , They are connection 5V Of VCC Pin 、 Grounded GND Pin 、 Serial port communication with MCU TXD and RXD Pin .

Let's talk about STM32F103C8T6 And SYN6288 Communication code of speech synthesis module , It is suggested that interested students can raise funds with their roommates , According to the wiring diagram provided in the data , DuPont line STM32F103C8T6 And SYN6288 The modules are connected , Re pass Jlink or STlink Burn the code into STM32 You can see the effect in .

delay_init( ) Initialization delay function , After executing this statement ,18-21 The delay effect of the line will be accurate .
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2) Set interrupt priority group .
USART3_Init(9600) Initialize serial port 3 function , The baud rate is 9600, After this code is executed , We can call 16 Yes SYN_FrameInfo( ) Function to let the speech synthesis module send “ This is bisher's escape ” It's the sound of .
SYN_FrameInfo(2, "[v9][m0][t5] This is bisher's escape ") This line of code realizes the sound function , The sound content is “ This is bisher's escape ”, If you want to change the content of pronunciation , Just modify the function brackets The green mark The Chinese content of , Then compile and burn the code into STM32 that will do .
Careful students will find out The green mark There is a string in front of the Chinese content of [v9][m0][t5] Such a string , They have their own functions , among [v9] The function of is to make the volume of the broadcast sound be the second 9 Level ,[m0] The function of is to mute the background music ,[t5] The function of is to increase the sound speed of the broadcast to the highest , Refer to the following figure for details. . and SYN_FrameInfo( ) The first parameter of the function is the background music selection (0 It's no background music ,1~15 Represents different background music when speaking ), Said so much , Just start with this module , Modify the parameters mentioned above by yourself , Then compile and burn into STM32 You can see the effect intuitively .

18-21 The function of line delay is to make the program wait for the voice synthesis module to broadcast the sound information , If the delay is too short , There will be a phenomenon that the next sound message will be broadcast before the current sound is broadcast .
Since then, the code explanation has been completed , Students who want to know the specific implementation process of each function can download the code at the bottom of the article .
When our design uses SYN6288 Speech synthesis module , Just know the function marked in red above , You can easily transplant the linked code into your own design code , In later chapters , I will show you .( The premise is that the master of the design MCU choose STM32F103C8T6)
Data download link :
https://pan.baidu.com/s/1UBUXnniBcy8d2rwb5mO2Pw
Extraction code :q2fx


边栏推荐
- Aidl for Hal
- codeblocks的官网下载与安装
- 关于物联网毕设须知
- HDU 3585 maximum shortest distance (二分+最大团)
- 嵌入式软件开发 STM32F407 蜂鸣器 寄存器版
- 简单线程实例-跑马灯-栈空间分配技巧
- Various operations of binary tree (leaf node, parent node, search binary tree, delete node in binary tree, depth of binary tree)
- 【Verilog】子模块连接相关问题(加法器及其优化)
- 人事管理系统 c语言版
- How to make electronic signature transparent
猜你喜欢

#导入Word文档图片# 根文件系统制作与挂载

友善zeroPi uboot、kernel 编译,

2021-07-31

第六章 OLED模块+STM32的使用

U-boot 2021.01 version compilation
![[Multisim] problems and solutions of Multisim Simulation](/img/73/210b5cd1e52f3cfdaf4b735976779a.png)
[Multisim] problems and solutions of Multisim Simulation "zero crossing comparator"

Blue Bridge Cup embedded Hal library new project

2021-07-19

虚拟内存位置结构(保留区、代码区、栈区、堆区、字面值常量区)与变量修饰符(const、auto、static、register、volatile、extern)

C语言实现汉诺塔(程序执行步骤详解)
随机推荐
[Verilog] sub module connection related problems (adder and Its Optimization)
01机器学习:评估指标
嵌入式软件开发 STM32F407 跑马灯 标准库版
OpenGL 3D graphics development notes, terrain, lighting, shadows, etc
RT_thread消息队列的使用
EasyCVR国标协议接入设备,设备在线、通道却不在线的原因是什么?
HDU 2874 Connections between cities (并查集+lca倍增法)
##DHCP-MASTER自动化部署
codeblocks的官网下载与安装
Blue Bridge Cup embedded Hal library new project
语音芯片JQ8400的使用心得
C语言宏定义(宏参数创建字符串、预处理粘合剂)
蓝桥杯嵌入式-HAL库-TIM_BASE
SQL中去除重复数据的几种方法,我一次性都告你
GAN:Generative Adversarial Nets——论文分析及其背后的数学概念
[Verilog] [vivado] counter example
stm32f103指南者——实例小游戏俄罗斯方块
HDU 1522 Marriage is Stable (稳定婚姻匹配)
stride for plane for YUV
Keil5 shortcut key