# How to play audio file with Photon

**URL:** <https://community.particle.io/t/how-to-play-audio-file-with-photon/51582>\
**Category:** General\
**Tags:** photon\
**Created:** [August 7, 2019, 3:47pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582 "2019-08-07T15:47:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![infinity9online](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@infinity9online](https://community.particle.io/u/infinity9online)\
**Post date:** [August 7, 2019, 3:47pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/1 "2019-08-07T15:47:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [August 7, 2019, 4:21pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/2 "2019-08-07T16:21:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![infinity9online](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@infinity9online](https://community.particle.io/u/infinity9online)\
**Post date:** [August 8, 2019, 3:11pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/3 "2019-08-08T15:11:19Z")

</div>

I want to play a .wav file

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [August 8, 2019, 3:24pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/4 "2019-08-08T15:24:16Z")

</div>

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

> **[monkbroc/particle-speaker](https://github.com/monkbroc/particle-speaker)**
>
> Generate audio output for a speaker with a Particle device - monkbroc/particle-speaker

---

<div class="post-metadata">

**Author:** ![infinity9online](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@infinity9online](https://community.particle.io/u/infinity9online)\
**Post date:** [August 8, 2019, 3:50pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/5 "2019-08-08T15:50:25Z")

</div>

I am trying to do like this using photon

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

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [August 8, 2019, 4:00pm UTC](https://community.particle.io/t/how-to-play-audio-file-with-photon/51582/6 "2019-08-08T16:00:13Z")

</div>

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._
