<?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[Slow audio? mp3&#x2F;wav.]]></title><description><![CDATA[<p dir="auto">I finally got wav files to play in my code. However im running into a problem. The wav file is played ok but there is stuttering(kinda like when a computer freezes) the audio is really slowed down, and there is static.  Has anyone had this problem?</p>
]]></description><link>https://community.m5stack.com/topic/3605/slow-audio-mp3-wav</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 05:07:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3605.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Sep 2021 15:06:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Slow audio? mp3&#x2F;wav. on Sun, 08 Oct 2023 14:02:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello!<br />
The cause of the problem is probably that the I2S configuration in the "Audio.h" directory is overwritten.<br />
When the object is created, the constructor function is executed, which sets up the I2S peripheral:<br />
////////////////////////////// AUDIO ////////////// // // /////////////////////<br />
Audio audio;<br />
////////////////////////////////////////////////// ///////////////////////////////////</p>
<p dir="auto">Then the "Setup" function of the Arduino environment is run, in which the following is called:<br />
////////////////////////////////////////////////// /// //////////////////////////<br />
void setup() {<br />
M5.begin();<br />
..............<br />
////////////////////////////////////////////////// ///////////////////////////////////</p>
<p dir="auto">Which again performs an I2S configuration that overwrites the previous settings.</p>
<p dir="auto">The solution is to prevent this override by defining the function parameters and disabling the speaker:<br />
////////////////////////////////////////////////// /// //////////////////////////<br />
void setup() {<br />
M5.begin(true, true, true, true, kMBusModeOutput, false);<br />
..............<br />
////////////////////////////////////////////////// ///////////////////////////////////</p>
<p dir="auto">The last parameter is the speaker, which is thus disabled.</p>
]]></description><link>https://community.m5stack.com/post/22434</link><guid isPermaLink="true">https://community.m5stack.com/post/22434</guid><dc:creator><![CDATA[zsoltyfm]]></dc:creator><pubDate>Sun, 08 Oct 2023 14:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to Slow audio? mp3&#x2F;wav. on Wed, 25 Jan 2023 12:34:31 GMT]]></title><description><![CDATA[<p dir="auto">I know this is a year old, but I've found the issue and it might be helpful for others with this issue.</p>
<p dir="auto">If you're using the ESP8266Audio libraries with M5Core2 v0.1.4 or v0.1.5, and you're running "M5.begin()", you need to comment out "Spk.begin();"  in "M5Core2.cpp" in your libraries. ie:</p>
<p dir="auto"><code>// Spk.begin();</code></p>
<p dir="auto">And add this to your code:</p>
<p dir="auto"><code>M5.Axp.SetSpkEnable(true);</code></p>
<p dir="auto">I don't really understand why this is causing the issue but I noticed v0.1.3 (which works fine) had the speaker initialisation function commented out.<br />
A year late in my reply, but better late than never!</p>
]]></description><link>https://community.m5stack.com/post/19925</link><guid isPermaLink="true">https://community.m5stack.com/post/19925</guid><dc:creator><![CDATA[rh1972]]></dc:creator><pubDate>Wed, 25 Jan 2023 12:34:31 GMT</pubDate></item></channel></rss>