talkie library problem (HELP)

hello, i want to use talkie library , i connected earphones to gnd and pin 11
and i uploaded this code but there no sound on the earphones , as library says it doesnt need amplifier for earphones. can anyone help me ? im using arduino mega 2560
#include "Talkie.h"
#include "Vocab_US_Large.h"

Talkie voice;

void setup() {

}
void loop() {
voice.say(sp2_DANGER);
voice.say(sp2_DANGER);
voice.say(sp2_RED);
voice.say(sp2_ALERT);
voice.say(sp2_MOTOR);
voice.say(sp2_IS);
voice.say(sp2_ON);
voice.say(sp2_FIRE);
}

Are you sure that the library supports the Mega. The timers in a Mega are different to those on a Uno and without any changes they are not interchangeable. I am on a mobile device at the moment so I can’t check the library to see if any special provisions are made for a Mega. If you can’t see any then it is unlikely to work.

I used to use the original chips for this speech synthesiser and I was not too impressed with the quality of this system when I tried it a few years back. I was impressed with the fact that the port was done at all.

You do need an amplifier for headphones, but a motor driver can work, as demonstrated here.

The library is intended for an ATmega328 based Arduino, not the Mega. A $2 eBay Pro Mini works fine.

so i need arduino pro mini

Or, you could modify the timer configuration in the Talkie library to work on a Mega.

marwan12:
so i need arduino pro mini

Or Uno or Nano.

i got pro mini today i will test it

how to see which words are able to SPEAK in this library ?

marwan12:
how to see which words are able to SPEAK in this library ?

Look at the code you are running it is all in there. Un "comment out" the words you want to use. There is not enough memory to have all the words in at the same time.

not all words are included like "object" , my only solution is EMIC2 MODULE
i want to know how they can do make text to speech in 1970s and 80s ?

i want to know how they can do make text to speech in 1970s and 80s ?

Text to speech is altogether a different problem, and one that never was quite good enough in the 70s and 80s. Even today it is not 100% as you will know if you ever turn it on on your computer.

If you are only wanting a fixed set of words then I think you would be better off using something like a sample player and recording your words in files on an SD card on your computer and playing them back under Arduino control. The free application "Audacity" is good for recording sounds and transferring them to an SD card.

okay , thanks for the help

Output connections on arduino mega are pins 6,7

as library says it doesnt need amplifier for earphones.

Technically speaking you wouldn't need an amplifier for a speaker either, it would just be very quiet.

Hello, i'm using mega 2560 and facing the same issue. How can i change the timers in library to make it working properly?

georgiooo:
Hello, i'm using mega 2560 and facing the same issue. How can i change the timers in library to make it working properly?

To make it work properly just connect to the proper pins :slight_smile:

As written here: GitHub - ArminJo/Talkie: Refurbished Arduino version of the Talkie library from Peter Knight.

Output pins for different ATmegas

ATmega328 (Uno and Nano): non inverted at pin 3, inverted at pin 11.
ATmega2560: non inverted at pin 6, inverted at pin 7.
ATmega32U4 (Leonardo): non inverted at pin 10, inverted at pin 9.
ATmega32U4 (CircuitPlaygound): only non inverted at pin 5.

With ATmega2560 use pins 6 or 7 and you are fine.