<?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>Audio Data Endianness and Playback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118123/audio-data-endianness-and-playback</link><description>Hi there, 
 
 I have recently moved to nRF5340 for my audio recording application. I have successfully implemented I2S master on nRF5340 using SPH0465 mems microphone as a slave. As the data comes in, I push it to a ring buffer (using the built-in library</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 19 Jan 2025 10:08:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118123/audio-data-endianness-and-playback" /><item><title>RE: Audio Data Endianness and Playback</title><link>https://devzone.nordicsemi.com/thread/518959?ContentTypeID=1</link><pubDate>Sun, 19 Jan 2025 10:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:074e4263-aba6-4b4f-a6b5-008d6fd0b379</guid><dc:creator>umer</dc:creator><description>&lt;p&gt;Update: I was able to retrieve the audio correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- The data read from i2s sits in the memory as Little Endian.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- Before sending over UART, I reconstruct the 24 bit sample (stacking the bytes together and shifting the bits as needed) using the datasheet of the microphone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- At the receiver end, I save the data as RAW. I was able to use this option in RealTerm, for example.&lt;/p&gt;
&lt;p&gt;- In Audacity, you can use Import tool: File-&amp;gt;Import-&amp;gt;Raw Data&lt;/p&gt;
&lt;p&gt;- In the settings, choose 24 bit signed PCM, 16000 Hz, no offset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And it should show you the audio data.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>