<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Playing wav files from sd card.]]></title><description><![CDATA[<p dir="auto">By using the built in wav_player (firmware 1.5 and above) I can play wav files pretty easily. However, when I play them from the sd card this causes a lot of stutter. So far I have tried three different SD cards with the same results. I have used the mix.wav found in the res directory and put it on my SD card and run this code.</p>
<pre><code>from wav import *

wav_player.playWav('res/mix.wav')
wav_player.playWav('/sd/mix.wav')
</code></pre>
<p dir="auto">The one played from the memory plays fluently without issues. The one from the SD card stutters and does not run fluently.</p>
<p dir="auto">Anyone has an idea on how to solve this?</p>
]]></description><link>https://community.m5stack.com/topic/2139/playing-wav-files-from-sd-card</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 17:09:40 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2139.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Jul 2020 12:40:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Playing wav files from sd card. on Fri, 29 Oct 2021 00:49:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukasmaximus" aria-label="Profile: lukasmaximus">@<bdi>lukasmaximus</bdi></a> Hey lukas, on which firmware version did you make this run?</p>
<p dir="auto">I am running it on a M5Core Basic and the unit reboots after the .wav was played once and I hit the button again.</p>
<p dir="auto">I have to uncomment:<br />
uos.sdconfig(uos.SDMODE_SPI,clk=18,mosi=23,miso=19,cs=4)</p>
<p dir="auto">to avoid another error</p>
<p dir="auto">still I get the:<br />
"sd card not mounted" lcd print.</p>
<p dir="auto">Is there any chance to adapt this patch to a newer firmware version?</p>
<p dir="auto">I have also tried it on a Core2, but it doesn't seem to know any of the I2C modes which you defined.</p>
<p dir="auto">would be great to get this to work again and make/update custom uiflow blocks.</p>
<p dir="auto">Thanks in advance for your reply</p>
]]></description><link>https://community.m5stack.com/post/15276</link><guid isPermaLink="true">https://community.m5stack.com/post/15276</guid><dc:creator><![CDATA[Hermes]]></dc:creator><pubDate>Fri, 29 Oct 2021 00:49:26 GMT</pubDate></item><item><title><![CDATA[Reply to Playing wav files from sd card. on Mon, 20 Jul 2020 02:50:48 GMT]]></title><description><![CDATA[<p dir="auto">You can try this guide I made some time ago <a href="https://www.hackster.io/lukasmaximus89/play-wav-files-on-your-m5stack-3bee7e" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.hackster.io/lukasmaximus89/play-wav-files-on-your-m5stack-3bee7e</a> I think the code should only be compatible with older versions of the firmware, I haven't tested it recently</p>
]]></description><link>https://community.m5stack.com/post/9382</link><guid isPermaLink="true">https://community.m5stack.com/post/9382</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Mon, 20 Jul 2020 02:50:48 GMT</pubDate></item></channel></rss>