How to play audio file with Photon

photon
Tags: #<Tag:0x00007fe21fed6ff8>

#1

i want to play an audio file in sd card using photon and sd card module.can anyone plz help me with this?


Error regarding library of playing sound file from sd card reader
Has anyone had success hooking up an SD card to the Photon and writing/reading data?
#2

Reading the data from SD card is one thing but how do you intend to play it?
What audio format does your audio file have?


#3

I want to play a .wav file


#4

You can look at this library
https://build.particle.io/libs/speaker/1.1.0/tab/speaker.cpp


#5

I am trying to do like this using photon


But the problem is ,the libraries used in this r not available for particle.

#6

The library I linked above in conjunction with the SdFat library would suffice to do what you want.
But you need get a general understanding of how each of the libraries work and put them together - noone will do it for you, and it wouldn’t be fun for you either.


I have moved the posts here into a separate thead as the original thread was about SdFat but not your main intend of playing audio files.