Go Down

Topic: talkie library problem (HELP) (Read 1 time) previous topic - next topic

marwan12

Sep 04, 2019, 04:15 pm Last Edit: Sep 04, 2019, 04:20 pm by marwan12
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);
}

Grumpy_Mike

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.

jremington

#2
Sep 04, 2019, 05:52 pm Last Edit: Sep 04, 2019, 05:54 pm by jremington
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.

marwan12


jremington

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

Grumpy_Mike


marwan12

i got pro mini today i will test it

marwan12

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

Grumpy_Mike

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.

marwan12

#9
Sep 05, 2019, 11:24 pm Last Edit: Sep 05, 2019, 11:27 pm by marwan12
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 ?

Grumpy_Mike

Quote
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.

marwan12


hussammj

Output connections on arduino mega are pins 6,7

virtuos1

Quote
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. 

Go Up