When I run this code it says voice.say(sp2_Hello!); is not declared. What do I need to do?
// Talkie - Version: 1.3.1
#include <Talkie.h>
#include <TalkieUtils.h>
#include <Vocab_US_Large.h>
#include <Vocab_Special.h>
/*
#include "Talkie.h"
#include "Vocab_US_Large.h"
*/
int red_light_pin= 11;
int green_light_pin = 10;
int blue_light_pin = 9;
Talkie voice;
void setup() {
voice.say(sp2_Hello!);
voice.say(sp2_My);
voice.say(sp2_Name);
voice.say(sp2_is);
voice.say(sp2_Nora!);
voice.say(sp2_How);
voice.say(sp2_About);
voice.say(sp2_You?);
voice.say(sp2_What);
voice.say(sp_Is)
voice.say(sp2_Your)
voice.say(Name?!);
delay(6000);
voice.say(sp2_Thats);
voice.say(sp2_A);
voice.say(sp2_Good);
voice.say(sp2_Name!);
delay(6000);
voice.say(sp2_Have);
voice.say(sp2_You);
voice.say(sp2_Had);
voice.say(sp2_Any);
voice.say(sp2_Water);
voice.say(sp2_Today?);
delay(6000);
voice.say(sp2_How);
voice.say(sp2_Many);
voice.say(sp2_Meals);
voice.say(sp2_Have);
voice.say(sp2_You);
voice.say(sp2_Eaten?);
voice.say(sp2_Are);
voice.say(sp2_You);
voice.say(sp2_Eating);
voice.say(sp2_Enough?);
delay(6000);
voice.say(sp2_Was);
voice.say(sp2_Your);
voice.say(sp2_Day);
voice.say(sp2_Good?);
voice.say(sp2_Did);
voice.say(sp2_You);
voice.say(sp2_Have);
voice.say(sp2_Fun?);
pinMode(speakerPin, OUTPUT);
pinMode(red_light_pin, OUTPUT);
pinMode(green_light_pin, OUTPUT);
pinMode(blue_light_pin, OUTPUT);
}
void loop() {
RGB_color(255, 0, 0); // Red
delay(1000);
RGB_color(0, 255, 0); // Green
delay(1000);
RGB_color(0, 0, 255); // Blue
delay(1000);
RGB_color(255, 255, 125); // Raspberry
delay(1000);
RGB_color(0, 255, 255); // Cyan
delay(1000);
RGB_color(255, 0, 255); // Magenta
delay(1000);
RGB_color(255, 255, 0); // Yellow
delay(1000);
RGB_color(255, 255, 255); // White
delay(1000);
tone(speakerPin, 440.00, 1136);
delay(1000);
void RGB_color(int red_light_value, int green_light_value, int blue_light_value)
{
analogWrite(red_light_pin, red_light_value);
analogWrite(green_light_pin, green_light_value);
analogWrite(blue_light_pin, blue_light_value);
}
}
//off
tone(speakerPin, 329.63, 1519);
delay(2000);
tone(speakerPin, 293.66, 1700);
delay(2000);
tone(speakerPin, 329.63, 1519);
delay(2000);
tone(speakerPin, 293.66, 1700);
delay(2000);
tone(speakerPin, 329.63, 1519);
delay(1000);
tone(speakerPin, 493.88, 1014);
delay(1000);
tone(speakerPin, 293.66, 1700);
delay(100);
tone(speakerPin, 261.63, 1915);
delay(100);
tone(speakerPin, 329.63, 1519);
delay(1000);
tone(speakerPin, 293.66, 1700);
delay(1000);
tone(speakerPin, 329.63, 1519);
delay(1000);
tone(speakerPin, 293.66, 1700);
delay(1000);
tone(seakerPin, 329.63, 1519);
if(digitalWrite(int speakerPin=8
pinMode(speakerPin, OUTPUT);
tone(speakerPin, 440.00, 1136);
delay(1000););
tone(speakerPin, 392.00, 1275);
delay(1000););
tone(speakerPin, 493.88, 1014);
delay(1000););
tone(speakerPin, 261.63, 1915);
delay(1000););
tone(speakerPin, 493.88, 1275);
delay(1000););
tone(speakerPin, 440.00, 1136);
delay(1000););
tone(speakerPin, 392.00, 1275);
delay(1000););
tone(speakerPin, 293.66, 1700);
delay(1000);) turn off) void myFunction((digitalWrite(int speakerPin=8)
//on
pinMode(speakerPin, OUTPUT);
tone(speakerPin, 440.00, 1136);
delay(1000););
tone(speakerPin, 392.00, 1275);
delay(1000););
tone(speakerPin, 493.88, 1014);
delay(1000););
tone(speakerPin, 261.63, 1915);
delay(1000););
tone(speakerPin, 493.88, 1275);
delay(1000););
tone(speakerPin, 440.00, 1136);
delay(1000););
tone(speakerPin, 392.00, 1275);
delay(1000););
tone(speakerPin, 293.66, 1700);
delay(1000););)) {
if (functionMayRun == false) {
return;
if(int inputPin = 5;
int ledPin = 13;
pinMode(inputPin, INPUT);
pinMode(ledPin, OUTPUT);
if (digitalRead(inputPin) == HIGH) {
digitalWrite(LedPin, HIGH);
}
else {digitalWrite(ledPin, LOW);
}
int inputPin = 5;
int ledPin = 13;
pinMode(inputPin, INPUT);
pinMode(ledPin, OUTPUT);
if (digitalRead(inputPin) == HIGH) {
digitalWrite(LedPin, HIGH);
}
else {digitalWrite(ledPin, LOW);
}
} ) void myFunction) {
if (functionMayRun == true) {
return;
//talking code
if((functionMayRun == true))
voice.say(sp2_Hello!);
voice.say(sp2_My);
voice.say(sp2_Name);
voice.say(sp2_is);
voice.say(sp2_Nora!);