Principle and application of text-to-speech single-chip processor WTS701

This article refers to the address: http://

Abstract: WTS702 is a "text-to-speech" single-chip integrated circuit with built-in speaker drive function from Winbond. The chip combines a continuous algorithm with Winbond's proprietary multi-level storage technology to achieve the full functionality of "text-to-speech". The principle and typical application of the chip are introduced in this paper. The interface circuit of Cygnal F120MPU and WTS701 is given, and the code program of its control software is given according to the corresponding chip instruction.

Keywords: text-to-speech; WTS701; C51 language;

1 Overview

The WTS701 is the first "text-to-speech" single-chip processor from Winbond. The WTS701 uses real human voice as a sample to ensure that the output is clear and vivid, and not as unnatural as a computer-synthesized sound. Therefore, the words converted into words are more natural, realistic and pleasing.

The WTS701 single-chip processor solution combines a concat enation algorithm with Winbond's proprietary Multi-Level Storage (MLS). The WTS701 single-chip processor has a built-in speaker driver that does not require a microprocessor or a personal computer to operate, so it can be widely used in wireless products. Any e-mail reading, real-time newsletter, website, news, weather, sports, stock price and other information, or e-commerce messaging and satellite navigation system voice instructions, can use this IC to convert text into speech, with auditory instead Visual to read. In addition, the WTS701 single-chip processor can also be used in learning aids, visually impaired aids, e-books, toys and other entertainment products.

2 pin arrangement and function

The WTS701 is available in a 56-pin TSOP package. Its pin arrangement is shown in Figure 1, and the function description of each pin is listed in Table 1.

Table 1 Pin Functions of WTS701

Pin number Pin name I/O

Features

2,36,44 VSSA G Analogue
3 VCLK I CODEC clock
4 VFS I CODEC sync signal
5 VDX O CODEC data output
6 MISO O SPI output mode, master input and output
7 XTAL2 O External clock output
8 XTAL1 I External clock input
9,10 VSSD G Data ground
11,12 VCCD P Data power
13 INT O Interrupt output
14 MOSI I SPI output mode, the main output
15 SS I SPI output mode, slave selection
16 SCLK I SPI serial clock input
25 CS I WTS701 chip selection
26 R/B O Data transfer idle or busy pin
27 RESET I Reset
40 ATTCAP I/O Automatic squelch, connecting 4.7μF capacitor to analog ground
42 SP- O Differential negative speaker output
46 SP+ O Differential positive speaker output
48 VCCA OP Analog power supply
52 AUXIN I Analog input
54 AUXOUT O Analog output
1,17-24,28-35,37-39,
41, 43, 45, 47, 49-51,
53,55-56
NC Hanging

3 Application characteristics

3.1 chip operating parameters

● Use 2.7V ~ 3.3V working voltage.

● Its I/O pin can withstand 3V ~ 5V voltage.

● Low power consumption, 35μA in the operating mode and 1μA in the standby mode.

● Operating temperature range: -40 ° C ~ +85 ° C.

● With analog audio output, 8Ω speaker can be connected externally.

● The pronunciation speed is adjustable.

● It can convert words into ASCII code or Unicode code.

● Support English male and female pronunciation and Chinese female pronunciation.

3.2 storage unit and SPI transmission format

The chip contains two sets of memory arrays: one for the voice database and the other for the core program. There is a set of analog/digital converters that are responsible for outputting sound through the sound effect PCM, and a set of speaker drive lines can be used as analog outputs. WTS701 supports ASCII text input (Chinese language requires Unicode encoded text), and can be input through the serial SPI interface, and then converted to voice and output through the analog port, of course, can also be output to the digital CODEC. The system workflow diagram of the WTS701 chip is shown in Figure 2.

The transmission protocol of WTS701 adopts SPI mode, and the transmission format is shown in Figure 3.

4 Typical applications

Figure 4 shows the interface circuit between the WTS701 and the Cygnal F120 microcontroller. The system application software code program is described below. When the microprocessor Cygnal F120 is connected to the WTS701 and the corresponding peripheral circuits, the application software can be run and the speaker will send a "Hello" greeting.

#include"c:\cygnaldefiles\c51\inc\c8051f120.h"

#define byte unsigned char

#define uint unsigned int

#define SYSCLK 22118400 //System Clock External Crystal

Data byte SFRPAGE_SAVE;

Idata byte status[23];??

Sbit cs =P2^0;

Sbit ss =P2^1;

Sbit mosi=P2^2;?

Sbit sclk=P2^3;

Sbit miso=P2^4;

Sbit rdy =P2^5;

Sbit bint=P2^6;

Sbit res =P2^7;

Void SYSCLK_Init(void)

{ data int i;

// delay counter

SFRPAGE_SAVE=SFRPAGE;

SFRPAGE=CONFIG_PAGE;

OSCXCN=0x67; // Start external 22.1184MHz crystal

For(i=0;i<255;i++); ? // Wait for the oscillator to start

While(!(OSCXCN&0x80?)); // Wait for the crystal oscillator to stabilize

CLKSEL=0x01;

OSCICN=0x00; // Select external oscillator as system clock source and enable lost clock detector

    SFRPAGE=SFRPAGE_SAVE;

}

Void PORT_Init(void)

{ SFRPAGE_SAVE=SFRPAGE;

SFRPAGE=CONFIG_PAGE;

XBR0=0x04; //Enable UART0

XBR1=0x14; // enable INT0 and INT1

XBR2=0x44; // Enable data crossbar and weak pullup

P2MDOUT|=0xff; // Allowed for push-pull output

SFRPAGE=SFRPAGE_SAVE;

}

Void spi_begin()

{ mosi=1;

Delay(1);

Sclk=1;

Delay(1);?

Ss=1;

Delay(1);?

Ss=0;

}

Byte spi_send_byte(byte d)

?{ idata byte i;

Idata byte result=0;

While(!rdy); ?

Mosi=1; miso=1;

For(i=0;i<8;i++)

{ sclk=0;

Delay(5);?

Mosi=(bit)(d&0x80);?

d=d<<1;

Delay(5);?

Sclk=1;

Delay?5??

Result*=2?

If(miso) result++;

}

Return(result);?

}

Void spi_end()

{ mosi=1;

Delay(1);?

Sclk=0;

Delay(1);?

Ss=0;

Delay(1);?

Ss=1;

}

Void delay(uint delx)

{ idata uint i=0;

While(i<delx)

{ i++;} ?

}

Main()

    { WDTCN=0xde; // Disable watchdog timer

WDTCN=0xad;

SYSCLK_Init();? // Initialize the oscillator

PORT_Init(); // Initialize data crossbar and general purpose IO port

Cs=0; res=1; delay(10); res=0; delay(10);?

Spi_begin();

Status[0]=spi_send_byte(0x14);

Status[1]=spi_send_byte(0x00);?

Spi_end();??

Delay(500); //ready to accept commands but not powered up

Spi_begin();

Status[2]=spi_send_byte(0x02);

Status[3]=spi_send_byte(0x00);?

Spi_end();

Delay(500); //send the power up command

Spi_begin();

Status[4]=spi_send_byte(0x06); //send read interrupt command

Status[5]=spi_send_byte(0x00);

Status[6]=spi_send_byte(0x00);?

Status[7]=spi_send_byte(0x00);?

Spi_end();?

Delay(500); //return the status of the wts701,now be ready for conversion

Spi_begin();?

Spi_send_byte(0x51);

Spi_send_byte(0x00);?

Spi_end();

Delay(500); //svol set vol register command

Spi_begin???

Spi_send_byte(0x52);?

Spi_send_byte(0x07);?

Spi_end();

Delay(500);//svol set vol register command

Spi_begin();

Status[8]=spi_send_byte(0x81);?

Status[9]=spi_send_byte(0x00);?

Status[10]=spi_send_byte(0x10);? //^P

Status[11]=spi_send_byte('D'); //"big" pinyin

Status[12]=spi_send_byte('A'??

Status[13]=spi_send_byte('4');?

Status[14]=spi_send_byte('J');? //"Home" pinyin

Status[15]=spi_send_byte('I');?

Status[16]=spi_send_byte('A');?

Status[17]=spi_send_byte('1');?

Status[18]=spi_send_byte('H');? //"Good" pinyin

Status[19]=spi_send_byte('A');?

Status[20]=spi_send_byte('0');?

Status[21]=spi_send_byte('3');?

Status[22]=spi_send_byte(' '); //End character

Spi_end();?

While(1); ?

}

5 Conclusion

In actual use, the pre-recorded vocal mode of the Winbond WTS701 voice chip can be used to make the text after the text conversion more humane. Most of the TTS products on the market today use computer-synthesized voice mode. The advent of WTS701 can convert general text into voice output of human voice, thus creating a more humanized voice environment.

Stereo Bluetooth Earphone No more headphone cord troubles when enjoy sports and music! Stereo Bluetooth Earphone that adopted with bluetooth CSR 4.2 technology can be invisible in your ear. The twins earbuds can be used simultaneously or separately. built-in HD and Sensitivity microphone, This hands free headset owns better echo cancellation, noise suppression and stable signal. It is ideal for listening music and calling with friends.

Stereo Bluetooth Earphone

Stereo Bluetooth Earphone,Bluetooth Stereo Headset,Bluetooth Microphone,Bluetooth Headset

ShenDaDian(China) Digital Electronics Co.,Ltd , http://www.btearbuds.com

This entry was posted in on