SUNROM ELECTRONICS

Text to Speech - TTS Module

Input any serial text data in english language, and it will start speaking.

Sunrom Part# 1231

Available We dispatch same day if ordered by 4PM (excluding holidays), then courier usually takes 2-5 days.
Quantity Pricing
Quantity :
Price (Discount%)
1-4 :
Rs.980/- (0%)
5-9 :
Rs.951/- (3%)
10-24 :
Rs.911/- (7%)
25-49 :
Rs.882/- (10%)
50-74 :
Rs.862/- (12%)
75-99 :
Rs.833/- (15%)
100-249 :
Rs.804/- (18%)
250-499 :
Rs.784/- (20%)
500-999 :
Rs.764/- (22%)
1000+ :
Rs.735/- (25%)

There is no limitation to words it can speak as its based on fundamentals of phonemes of english.

Demo of TTS (Talks when on board switch is pressed)

Status LEDs

  • Board has two LEDs
  • PWR - Green LED indicate that board is getting power
  • STS - Yellow LED can be OFF(Not Speaking) or ON(Speaking)

Pinouts

Interface/Power Pins (4x)

Pin#

Pin Name

Function

1

GND

Ground pin

2

+5V

Provide regulated +5V DC voltage to this pin for board operation. Board has LM1117-3.3V regulator to power all parts.

3 TX-OUT

Outgoing Serial data for 3-5V UART 9600bps. Typically connected to RXD pin of microcontroller or MAX232 or USB-TTL.

It outputs text that the module is speaking.

4 RX-IN

Incoming serial data at 5V or 3V level. If your data source is microcontroller, then you can connect its TXD pin to RX-IN of the board directly. If your data is at RS232 level data is use a MAX232 to convert that data to 5V UART suitable for board.

It has to be 9600bps - No Parity - 1 stop bit

Maximum string it can accept is 256 characters at a time. Once its done speaking you can send another string. You can monitors its TX-OUT pin for hash # character to see when it has completed the talking and then you can send another string.

Detect Output pins (2x)

Pin#

Pin Name

Function

1

GND

Ground pin

2

DET

Switch when pressed to ground speaks Demo speech

 

Audio Output pins (2x)

Pin#

Pin Name

Function

1

GND

Ground pin

2

AUD

Outputs analog audio for headphone or external audio amplifier.

 

Testing with Terminal

Its recommended and easy to test first with PC before moving to microcontroller interfacing.

Connect the board using USB-TTL or MAX232 to PC. Then press Demo Switch on the board.

Interfacing with microcontroller

It’s very easy to interface with microcontroller having UART at 3V or 5V level. Configure your microcontroller to communicate at 9600 baud rate.

To speak simply send below string and end with CR (Carriage Return, '\r', 0x0D, 13 in decimal).

printf("How are you today?\r");         // Speak this text

Before approaching to this, we recommend you try on PC first with terminal software.

In Keil C51 compiler you can write simple code as below. 

#include <REGX51.H>
#include <stdio.h> // for printf
 
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=- Setup Serial port for printf -=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void init_serial( void )
{
  //9600 bps @ 11.059 MHz
  SCON = 0x50; /* Setup serial port control register */
  /* Mode 1: 8-bit uart var. baud rate */
  /* REN: enable receiver */
  PCON &= 0x7F; /* Clear SMOD bit in power ctrl reg */
  /* This bit doubles the baud rate */
  TMOD &= 0xCF; /* Setup timer/counter mode register */
  /* Clear M1 and M0 for timer 1 */
  TMOD |= 0x20; /* Set M1 for 8-bit autoreload timer */
  TH1 = 0xFD; /* Set autoreload value for timer 1 */
  /* 9600 baud with 11.0592 MHz xtal */
  TR1 = 1; /* Start timer 1 */
  TI = 1; /* Set TI to indicate ready to xmit */
}
 
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=- Delay x ms -=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void delay_ms(int x) // delays x msec (at fosc=11.0592MHz)
{
  int j=0;
  while(x>=0)
  {
    for (j=0; j<100; j++);
    x--;
  }
}
 
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=- Main -=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
void main()
{
  delay_ms(100); // power stabilize
 
  init_serial(); // setup C51 serial port

  while(1)
  {
       printf("How are you today?\r"); // Speak
       delay_ms(3000);
  }
}


Sunrom Electronics & Sunrom Technologies are two companies, that are the foremost online e-commerce stores since 2004, providing innovative embedded systems, components & services. Our aim is to empower you to Make In India. We work closely with electronics manufacturing companies & individuals to understand & solve the challenges faced during production. We do not just sell things, We use them ourselves in our products, and provide you with high quality tested components for trouble free experience.

  • Sunrom Electronics
  • GSTIN: 24AFBPT4632H1ZJ
  • Sunrom Technologies
  • GSTIN: 24AJLPP4029L1ZW
Google Reviews