play sound using arduino nano and card module reader

hello i have a memory card reader and arduino nano and headphones how can i play sound that stored in the memory and listen to it using the headphones ?

Didn't your mother tell you to NEVER post your email address on a forum?

Best advice is to read this: http://forum.arduino.cc/index.php/topic,148850.0.html.

AS far as your question, please tell us what you have tried and what code you used.

Paul

Paul_KD7HB: Didn't your mother tell you to NEVER post your email address on a forum?

Best advice is to read this: http://forum.arduino.cc/index.php/topic,148850.0.html.

AS far as your question, please tell us what you have tried and what code you used.

Paul

i used this code before but it doesnt work

#include "SD.h"
#define SD_ChipSelectPin 4
#include "TMRpcm.h"
#include "SPI.h"

TMRpcm tmrpcm;

void setup(){
tmrpcm.speakerPin = 9;
Serial.begin(9600);
if (!SD.begin(SD_ChipSelectPin)) {
Serial.println("SD fail");
return;
}

tmrpcm.setVolume(6);
tmrpcm.play("rain.wav");
}

void loop(){  }