Ok, I HOPE there is a simple fix to this:
I have a sketch that will send a word to the speakjet (voice synthesizer) and it will say the word, in the sketch I have a massive list of arrays for e.g.
char alien[] = {7,127,7,154,145,128,8,7,133,141};
....
char zebra[] = {167,7,128,170,7,148,134};
You get the idea.
It works when I upload a sketch with the following:
speakjet.print(zebra);
Now I want to have an array of words such as:
char* rdmWords[]={"alien","zebra"};
pick a random word:
x = rdmWords[random(2)];
Then get the speakjet to say it:
stringOne.toCharArray(z, 6);
speakjet.print(z);
Now that last bit doesn't wok! >:( >:(
If anyone could help me, I would muchly appreciate it, I hope it can be achieved! Also an explanation as to why it doesnt work would also be great.
Thank-you, I hope that was clear for y'all.