Play audio file at receiver (RF module)

I am using RF module of 434 MHz.I am sending small text from transmitter to receiver ,for that i am using virtual wire library.After receiving the text at receiver site I want to play small audio file.I am using PCM library for playing sound file on arduino ,because my audio file is very small and i don’t want to use external memory.but the problem is when I import virtual wire and PCM in same code at receiver it is throwing error.I am beginner in arduino so I am not getting why it is not allowing both library together.
I am using arduino leonardo at transmitter site and Uno as receiver.
Is their any solution through which I can play my audio file at receiver without using sd card?
and how can i import both virtual wire and PCM in same code? Plz help

but the problem is when I import virtual wire and PCM in same code at receiver it is throwing error.

When you INCLUDE (you do not IMPORT anything) some libraries that you did not provide links to, in some code that you did not post, you get some errors that you did not show. Well, good luck.

I am beginner

That is no excuse.

Sorry for those mistakes,
I am sending two numbers from transmitter 1 and 5 ,at receiver i want to play the audio when number 1 get receive.My code is

Transmitter:

#include <VirtualWire.h>

char *controller;
char vl;
void setup() {
   Serial.begin(9600);
  pinMode(13,OUTPUT);
vw_set_ptt_inverted(true); 
vw_set_tx_pin(12);
vw_setup(2000);
}

void loop(){
  
 controller="1";

vw_send((uint8_t *)controller, strlen(controller));
Serial.println(controller);
vw_wait_tx(); 
digitalWrite(13,1);
delay(2000);

controller="5";
 Serial.println(controller);
vw_send((uint8_t *)controller, strlen(controller));
vw_wait_tx();
digitalWrite(13,0);
delay(2000);
  
}

Receiver:

#include <VirtualWire.h>

void setup()
{
   Serial.begin(9600);
    vw_set_ptt_inverted(true); 
    vw_set_rx_pin(12);
    vw_setup(2000);  
   

    vw_rx_start();      
     
}
void loop()
{
    uint8_t buf[VW_MAX_MESSAGE_LEN];
    uint8_t buflen = VW_MAX_MESSAGE_LEN;

    if (vw_get_message(buf, &buflen)) 
    {
       Serial.println((char)buf[0]);
      if(buf[0]=='1')
      {

   Serial.println((char)buf[0]);
   
  // i want to play my audio here
  
      }  
   if(buf[0]=='5')
   {
      Serial.println((char)buf[0]);
  
    }

}
}

When I INCLUDE :grin: virtual wire and PCM together for eg.
#include <VirtualWire.h>
#include <PCM.h>

I m getting error:

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

VirtualWire\VirtualWire.cpp.o: In function `__vector_11':

C:\Users\nitu\Documents\Arduino\libraries\VirtualWire/VirtualWire.cpp:591: multiple definition of `__vector_11'

PCM\PCM.c.o:C:\Users\nitu\Documents\Arduino\libraries\PCM/PCM.c:74: first defined here

collect2.exe: error: ld returned 1 exit status

Error compiling.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

anyone have solution on this problem?
I want to include both PCM and virtualwire in same code at receiver side.

anyone have solution on this problem?

No. Both libraries are trying to use the same timer. You could re-write one to use a different timer, but that probably will not be trivial.

thank you sir for your reply.

Is their any other library? so i can play my audio file at receiver side with virualwire library.
please suggest me any other library links.

I just want to play my audio file at receiver side.

I have used RCSwitch library for RF module at the place of virtualwire.
so now i can use both RCSwitch nd PCM together at receiver side.
Finally i am able to play my audio file at receiver :smiley: