Go Down

Topic: Talkie library + a little GLCD help (Read 6632 times) previous topic - next topic


Dec 24, 2013, 03:59 pm Last Edit: Dec 24, 2013, 04:01 pm by Arduinoisme Reason: 1
I was working on my talking clock project, and I am thinking of using the Talkie library for the 'talking' because  I have heard some AWESOME sounds from it.

The only problem is, I don't understand it.

Code: [Select]
#include "talkie.h"
#include <Wire.h>                       // For some strange reasons, Wire.h must be included here
#include <DS1307new.h>

Talkie voice;

uint8_t spTHE[]       PROGMEM = {
uint8_t spTIME[]      PROGMEM = {
uint8_t spIS[]        PROGMEM = {
uint8_t spA_M_[]      PROGMEM = {

An endless list of 0 times a random number. How does that even make sense?

Anyone have any explanation? Please provide a clear explanation as I really want to use this library and I don't want or even need any external ICs.

PS. Please help me to use a GLCD (JHD12864E) to an Arduino leonardo and program it with the glcd v3 library. It doesn't seem to be working, even with example code. I have checked the circuit a million times with the datasheet and panel - b connections (JHD12864E is a panel B type) but it still doesn't work.

Any help with either of these topics would be very much appreciated. My project is a very good one, so I will also publish it on the forum if I succeed.

P.S.S The above code is not self written (obviously.)


Dec 24, 2013, 05:08 pm Last Edit: Dec 24, 2013, 05:12 pm by PaulRB Reason: 1
Hi Arduinoisme and welcome.

This is the best advice I can give you:

  • Always post your complete sketch. What you posted above tells us nothing.

  • Always post a schematic (a diagram of your circuit) or a clear detailed picture of the circuit.

  • Don't ask 2 separate questions in the same thread. Everything will become confused, including you. Start a new thread for the GLCD question. There is a special section of the forum for this kind of display/

  • Don't just say things like "it doesn't seem to be working", no-one can help you at all with so little to go on. Describe exactly what you have tried and exactly what you see. For example, does the back light come on on the display? Do you see random dots or shapes?

I hope this helps. Asking for help is a skill in itself, which everyone has to learn!


PS. Well done for using "code tags" in your first post. Most people get that wrong first time, because they don't read the forum rules before posting.


Dec 24, 2013, 05:30 pm Last Edit: Dec 24, 2013, 05:48 pm by Arduinoisme Reason: 1
Sorry if I was a little disrespectful. But  I have not designed a circuit yet, I am just asking for help on the random 0s and multipliers.
I just don't understand how to use them. Are they frequiences? If so, how do I control them?

With the GLCD, the problem is controlling it. The backlight turns on, but I see random pixels on the display. I am using the example code from the library, the HelloWorld Example, which goes like this:

Code: [Select]
 GLCD Library - Hello World

This sketch prints "Hello World!" to the LCD
and shows the time in seconds since reset.

 The circuit:
 See the inlcuded documentation in glcd/doc directory for how to wire
 up the glcd module. glcd/doc/GLCDref.htm can be viewed in your browser
 by clicking on the file.


// include the library header
#include <glcd.h>

// include the Fonts
#include <fonts/allFonts.h>

void setup() {
 // Initialize the GLCD

// Select the font for the default text area

 GLCD.print("hello, world!");

void loop() {
 // set the cursor to column 0, line 1
 // (note: line 1 is the second row, since counting begins with 0):
 GLCD.CursorTo(0, 1);

 // print the number of seconds since reset:

Also, the code I printed in the earlier post was from someone else (I specifically mentioned that at the end of the post) from:

Here is my considered circuit (which happens to be in the link) -


I have made a talking clock/thermometer with the Talkie library, it works well.
I went off of this code .
The library is quite simple, I suggest working off of the Vocab_US_Clock example, it's pretty straight forward.
Include the words you want to use, and call them in your sketch using:
Code: [Select]
voice.say(the word you want here);
As for the 0x values.
The words are stored in hexadecimal format, nothing for you to play around with or the words won't work.
It's all about the skills


0x doesn't mean zero times the number that follows. It means that the number which follows is represented as a hexadecimal number instead of decimal. e.g. 0x10 represents decimal 16.

Don't send me technical questions via Private Message.


What I am asking is, if  I want to use this library afterwards in some other project and want some other words, how do I control the hexadecimals? Is there a table or anything? Or is there some maths involved?


You don't "control" the hexadecimals. For your own words you need to record them on your PC, then use the encoder included with the talkie library, then manually convert to hexadecimals and use that.
It is NOT an easy process.
The better way of using your own words is to get a dedicated speech module like these: Ginsing , Speakjet voice sheild or an eMic2.
It's all about the skills


You could also try SimpleSDAudio library, where you can record your sounds, convert using supplied batch files and Sox, then play straight from an SD Card with a speaker/amp connected to Arduino pin(s). 8 Bit Moni would work for voice for a clock.

All you'd neee is an SD card reader and a speaker + any required amp.


Dec 26, 2013, 12:31 am Last Edit: Dec 26, 2013, 01:33 am by jremington Reason: 1

What I am asking is, if  I want to use this library afterwards in some other project and want some other words, how do I control the hexadecimals? Is there a table or anything? Or is there some maths involved?

The Talkie library is a software emulator for the voice synthesis chip in the original Texas Instruments Speak n Spell toy that was developed in the 1970s. http://en.wikipedia.org/wiki/Speak_%26_Spell_%28toy%29 The hex codes are dumps from the read-only memories in various versions of the toy. The theory is pretty complex and there was a real art to developing ROM codes that create reasonable speech. It is not at all simple to add new words, but there are lots of words available from various different ROM dumps.

If you are interested in learning more of the fascinating history of the speech chip and subsequent efforts to understand and reproduce how it works, there are some references in the GitHub depository to the MAME project (various people working on emulating vintage video game and speech chips).  https://github.com/going-digital/Talkie

For additional information on creating word and phrase libraries (including making your project swear "like a sailor") check out the encoder directory in the Talkie library and also these sites:

Go Up