<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to use nRF52 series to play mp3 audio file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65225/how-to-use-nrf52-series-to-play-mp3-audio-file</link><description>Hello Sir, 
 I will use Nordic nRF52 series(832 or 840) to develop smart bluetooth device. As I need to store mp3 audio files in external flash and then will play mp3 audio file to drive speaker. Do I need to add external DAC (or mp3 decoder) and audio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Nov 2021 21:13:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65225/how-to-use-nrf52-series-to-play-mp3-audio-file" /><item><title>RE: How to use nRF52 series to play mp3 audio file</title><link>https://devzone.nordicsemi.com/thread/338260?ContentTypeID=1</link><pubDate>Tue, 09 Nov 2021 21:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80876bcc-272f-4659-96f1-2357645a48f8</guid><dc:creator>NewtoM</dc:creator><description>&lt;p&gt;Hi Thomas, this is possible. For simple (voice quality) tasks, you can use PWM output (have a look a this thread: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52878/pwm-audio-driver"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52878/pwm-audio-driver&lt;/a&gt;), for high-quality output use e.g. the MAX98357A I2S amplifier. I managed to combine both with a minimalistic mp3 decoder implementation (&lt;a href="https://github.com/lieff/minimp3"&gt;https://github.com/lieff/minimp3&lt;/a&gt;) and they work great. Unfortunately I am not allowed to show full source code, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF52 series to play mp3 audio file</title><link>https://devzone.nordicsemi.com/thread/266762?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 13:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960d1815-e086-48ea-88d8-2998e94e0cfb</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
[quote user="arctommy20"]Case1(simple audio). nRF52 (store opus audio format on external flash) &amp;gt; use PWM to output simple audio &amp;gt; to audio amplifier to drive speaker[/quote]
&lt;p&gt;We only have examples using Opus for input from a PDM microphone (in the smart remote 3 reference design), but that is a possibility. Note that after decoding you would have to convert to a PWM signal. There are no official examples of that, but it should be possible.&lt;/p&gt;
[quote user="arctommy20"]For case 2, we use PWM or other I/P to output to external DAC? Please advise. Thanks[/quote]
&lt;p&gt;No, you would not use PWM to the DAC. Most likely you would use I2S if you are on the nRF52840. Essentially you need to use an interface that is compatible with both the nRF device you use and the DAC, so you must select an appropriate DAC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF52 series to play mp3 audio file</title><link>https://devzone.nordicsemi.com/thread/266605?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 02:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b60d38-9cc4-4f10-b54a-a003ea13ed91</guid><dc:creator>arctommy20</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; Thanks for your information.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;I want to verify the below flows of playing Opus audio format on nRF 52 series as below:&lt;/p&gt;
&lt;p&gt;Case1(simple audio). nRF52 (store opus audio format on external flash) &amp;gt; use PWM to output simple audio &amp;gt; to audio amplifier to drive speaker&lt;/p&gt;
&lt;p&gt;Case2(good quality audio). nRF52 (store opus audio format on external flash)&amp;gt; use( PWM or other I/O port)&amp;nbsp; to output to external DAC &amp;gt; to audio amplifier to drive speaker&lt;/p&gt;
&lt;p&gt;My flows are corrected or not? Please advise&lt;/p&gt;
&lt;p&gt;For case 2, we use PWM or other I/P to output to external DAC? Please advise. Thanks&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use nRF52 series to play mp3 audio file</title><link>https://devzone.nordicsemi.com/thread/266488?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 12:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4b7ccff-9c6f-417d-ac6e-1f68ab98cb40</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not aware of any implementations of an MP3 decoder on an nRF52 device, but it may be possible depending on the complexity. There may be other more suitable codecs (such as Opus or similar) if you do not require MP3 specifically. You could use the PWM peripheral to output simple audio, but you may find that an external DAC is needed for good quality audio.&lt;/p&gt;
&lt;p&gt;Perhaps someone from the community has experience with this and want to comment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>