SYN6288 Speech Synthesis Module
The SYN6288E Chinese speech synthesis chip is a mid-to-high-end speech synthesis chip launched by Beijing Yuyin Tianxia Technology Co., Ltd. in early 2010. It is an upgraded version of the SYN6288 chip with improved packaging and more natural-sounding speech synthesis. The SYN6288E uses asynchronous UART (Universal Asynchronous Receiver/Transmitter) communication to receive text data for synthesis and convert it into speech (TTS).
Module Source
Purchase Link:
https://item.taobao.com/item.htm?spm=a230r.1.14.41.7bb74e15T8dQgB&id=633248893415&ns=1&abbucket=12
Other Purchase Link【1】:
https://detail.tmall.com/item.htm?abbucket=0&id=626679473209&ns=1&skuId=4615245602143&spm=a21n57.1.0.0.acc5523cluUkQ0
Other Purchase Link【2】: https://detail.tmall.com/item.htm?abbucket=0&id=636100867675&ns=1&spm=a21n57.1.0.0.acc5523cluUkQ0
Baidu Netdisk Download Link:
https://pan.baidu.com/s/1Kb8RA9aksd3o8Q-A8WqmNA
Password:1234
Specifications
Input voltage: 2.4V~5.1V
Rated Current: 2.0uA~280mA
Control Method: Serial
Instructions for Use
To control the speech synthesis, simply configure the serial port and send the data according to the command frame format required by the datasheet to activate the speech synthesis function.
Note! This module can only perform speech synthesis and does not have voice recognition capabilities! It also cannot record audio.
Hardware Interface
- Connect the TX (Transmit) pin of the SYN6288 module to pin 11 of the development board.
- Connect the RX (Receive) pin of the SYN6288 module to pin 10 of the development board.
- Provide appropriate power to the SYN6288 module, typically 5V and GND.
Usage Method
Enter the code:
/******************************************************************************
* Test Hardware: LCSC ColorEasyDuino Development Board
* Version Number: V1.0
* Modified By: www.lckfb.com
* Modification Date: April 17, 2024
* Function Overview:
*****************************************************************************
* Open-source development board hardware and software information and related projects hardware and software information on official website
* Development board official website: www.lckfb.com
* Technical support resident forum, any technical problems are welcome at any time to exchange learning
* LCSC Forum: club.szlcsc.com
* Follow our Bilibili account: [立创开发板], stay toned to our latest news!
* We focus on cultivating Chinese engineers rather than profiting from board sales.
******************************************************************************/
#include <SoftwareSerial.h>
SoftwareSerial SynSerial(10, 11); // RX, TX
void setup() {
SynSerial.begin(9600);
sendTextToSYN6288("欢迎使用SYN6288模块");
}
void loop() {
}
void sendTextToSYN6288(char* text) {
unsigned char Send_Buff[];
unsigned char Xor_Check = 0;
unsigned int Text_Len = strlen((const char*)text);
Send_Buff[] = 0xFD;
Send_Buff[] = (Text_Len+3)>>8;
Send_Buff[] = (Text_Len+3)&0x00ff;
Send_Buff[] = 0x01;
Send_Buff[] = 0x01;
sprintf((char*)Send_Buff+5, "%s", text );
for( int i = 0; i < Text_Len+5; i++ )
{
Xor_Check = Xor_Check ^ Send_Buff[];
SynSerial.write(Send_Buff[]);
}
SynSerial.write(Xor_Check);
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Note: When downloading, the file needs to be converted to ANSI encoding format for the speech synthesis module to correctly announce the Chinese content. The method to convert the format is shown in the video. (After conversion, the Chinese characters in the code may appear as garbled text, but the speech synthesis module will broadcast the content correctly.)
Usage Testing
Be sure to change the encoding format of the .ino file to ANSI format when you use it (use Notepad to open the .ino file, then save as ANSI to overwrite it).
It will announce “Welcome to the SYN6288 module”!