please could anyone help me with this code i want to make a voice remote

please could anyone help me with this code i want to make a voice controlled remote could someone see and correct the code plz

#include <IRremote.h>
#include <SoftwareSerial.h>
#include "VoiceRecognitionV3.h"
 
byte com = 0; //reply from voice recognition
VR myVR(2,5);
IRsend irsend;


void setup()
{
Serial.begin(9600); 
Serial.write(0xAA);
Serial.write(0x11);
delay(1000);
Serial.write(0xAA);
Serial.write(0x12);
}

void loop()
{
    int khz = 38; // 38kHz carrier frequency for the NEC protocol
  unsigned int irSignal[] = {9150,4400,600,550,650,450,700,450,650,500,650,450,700,450,650,450,700,450,650,1600,700,1550,700,1600,650,1600,650,1600,650,1600,700,1550,700,1600,650,450,700,1550,700,450,650,500,650,1600,650,450,700,450,700,450,650,1600,650,500,650,1600,650,1600,650,500,650,1600,650,1600,650,1600,700}; //AnalysIR Batch Export (IRremote) - RAW

while(Serial.available())
{
com = Serial.read();
switch(com)
{
case 0x11:
  irsend.sendRaw(irSignal, sizeof(irSignal) / sizeof(irSignal[0]), khz); //Note the approach used to automatically calculate the size of the array.
break;
    }
  }
}

Voice_control_1.ino (975 Bytes)

please i have an important project depend on this code ;(

What's the problem?

im new with arduino :( the pin of ir led is not declared

Moderator edit: excessive white space removed.

the pin of ir led is not declared

Why didn't you declare it?

seriously i dont know how to declare it

What is the full error message that you get when you try to compile the code ?

there is no error in the code put i dont know the pin of the ir led

i dont know the pin of the ir led

Which pin is it connected to ?

i want to connect it to pin 9

hamza95:
i want to connect it to pin 9

Have you tried connecting it ? What happens ? Have you looked at the IRremote examples ? How will the program know which pin you are using ? What is the remote supposed to do ?

UKHeliBob: Have you tried connecting it ? What happens ? Have you looked at the IRremote examples ? How will the program know which pin you are using ? What is the remote supposed to do ?

this is the main issue that i faced

Why did you start a new thread on the same subject ?