Skip to product information
DTS33A  Speech Synthesis Module Convert  Text to Speech TTS Module  Voice Broadcast Human Pronunciation
1/5
Color
Ships From

SPECIFICATIONS

Brand Name: NoEnName_Null

Condition: New

Hign-concerned Chemical: None

Model Number: DTS33A

Origin: Mainland China

Type: Module

is_customized: Yes



 

Arduino Programming Reference

----------------------------------------------------------------------------------------------------------
/*
Description:
Test Porgram for DTS33A Module  

  Version: DTS33A_V1
  Created 2024 by Jack ZHang

IDE: Arduino IDE 2.2.0
Board:Arduino-Uno

Hardware Connection:
Arduino-Uno---DTS33A
PIN 1(TX)  ---RX

*/

#include<SoftwareSerial.h>

voidsetup(){
Serial.begin(115200);//  arduino default  serial PIN0-RX  PIN1-TX  
}

voidloop(){
Send_Data_To_TTS_Module();
delay(15000);//Send data / seconds

}
 
 
//发送TTS数据包测试DTS33A语音模块
intSend_Data_To_TTS_Module(void)
{
  String TTS_String = "[v3][s3]Hello,Welcome! ";
  //The meaning of [v3] [s3] is to simultaneously set the volume and speed to level 3;//
  u16 data_len=0;
  data_len = TTS_String.length()+2;//data length

Serial.write(0xFD); //head
Serial.write(data_len>>8); //length H
Serial.write(data_len); //length
Serial.write(0x01); //CMD//
Serial.write(0x04); //REF=UTF-8 Related to development environment, 0x04:UTF-8;  0X01:GB2312
Serial.println(TTS_String); //Text content that needs to be synthesized   
 
return1;
}
 
----------------------------------------------------------------------------------------------------------





STM32 Programming Reference


----------------------------------------------------------------------------------------------------------

void Test (void)

{

unsigned int dat_len=0;

char package[512] = "Welcome to use DTS[n3]33A module!";


dat_len = strlen(package)+2;


Usart_Send( 0xFD); //head

Usart_Send( dat_len>>8); //length H

Usart_Send( dat_len); //length L

Usart_Send( 0x01); //CMD

Usart_Send( 0x04); //REF

//REF Related to development environment, 0x04:UTF-8;  0X01:GB2312

Usart_Send_Str(package);


}

----------------------------------------------------------------------------------------------------------


If you have any other needs, please contact customer service. Thank you!




You may also like