- Order number: MIKROE-2253
- Manufacturer product ID: MIKROE-2253
Text To Speech click is a mikroBUS™ add-on board that carries an Epson S1V30120 speech synthesis IC. The IC is powered by the Fonix DECtalk® v5 speech synthesis engine that can make your robot or portable device talk in US English, Castilian Spanish or Latin American Spanish, in one of nine pre-defined voices. The DECtalk engine includes a parser that gives users fine control over the quality, pitch and intonation of the synthesized speech. The audio is reproduced at 11.025kHz sampling rate. Text To Speech click board communicates with the target board microcontroller through the mikroBUS™ SPI interface (MISO, MOSI, SCK, CS) with additional functionality provided by DRDY, NRST and MUTE pins (in place of default mikroBUS™ INT, RST and AN pins) It can use either a 3.3V or 5V power supply.
Specification
Type | Speech recognition |
Applications | Talking robots, text to speech and speech processing applications for embedded systems and portable devices. |
On-board modules | Epson S1V30120 speech synthesis IC |
Key Features | Fonix DECtalk® v5 fully parametric speech synthesis. Nine predefined voices. |
Key Benefits | Languages: US English, Castilian Spanish, Latin American Spanish. |
Interface | GPIO,SPI |
Input Voltage | 3.3V or 5V |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Features and usage notes
Text To Speech click features a 3.5 mm audio jack for connecting an external active speaker.
To choose whether to use 3.3V or 5V logic, solder the I/O SEL jumpers into the appropriate position (by default, it's at 3.3V)
The Fonix DECtalk® speech synthesis engine that powers TextToSpeech click has been in development since the eighties. A large number of projects are available online. Few of them are listed in the Resources section at the bottom of this page. Browsing these projects will help you get a better idea on how the parser markup works to create a more natural sounding speech synthesis.
Note that Text To Speech click requires at least 6KB of RAM and 10KB of Flash memory from the target board microcontroller in order to function efficiently.
The S1V30120 chip also has Audio reproduction capabilities (ADPCM decoding). The audio reproduction bit rates available are 80kbps, 48kbps, 40kbps, 32kbps, 24kbps, with a sampling rate of 16,8 kHz.
Programming
The following code snippet shows the DECtalk® speech synthesis engine parser in action. This code results in a natural-sounding, melodic rendition of "Happy Birthday to you"
1 void main() 2 { 3 system_init(); 4 tts_init(); 5 tts_setup(); 6 7 8 /* Singing the birthday song */ 9 tts_speak( "[hxae<300,10>piy<300,10> brr<600,12>th<100>dey<600,10> tuw<600,15> yu<1200,14>_<120>] 10 [hxae<300,10>piy<300,10> brr<600,12>th<100>dey<600,10> tuw<600,17> yu<1200,15>_<120>] 11 [hxae<300,10>piy<300,10>brr<600,22>th<100>dey<600,19>dih<600,15>rdeh<600,14>ktao<600,12>k_<120>_<120>] 12 [hxae<300,20>piy<300,20> brr<600,19>th<100>dey<600,15> tuw<600,17> yu<1200,15>] " ); 13 }
Code examples that demonstrate the usage of Text To Speech click with MikroElektronika hardware, written for mikroC, mikroBasic and mikroPascal for ARM, PIC32, and FT90x are on Libstock.
For a thorough tutorial on how the Text To Speech click library works, read the dedicated article on learn.mikroe.com