<?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>Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110764/extracting-the-audio-signal-from-i2s-integration</link><description>Good day! I have a nRF52840 based board that I interfaced with a MEMS microphone (SPH0645) through I2S interfacing. I got to the point where sounds made near the microphone affects the data being fed through the board. I assumed that the interfacing is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 May 2024 12:45:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110764/extracting-the-audio-signal-from-i2s-integration" /><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/484691?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 12:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eb8071a-1ed5-4084-9f4a-c03529ae26f6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Looking at the implementation of&amp;nbsp;z_impl_i2s_buf_read() I can see that there is a mempy() to the buffer supplied by&amp;nbsp;i2s_buf_read(). Searching in ncs repositories I can find some usage of &amp;quot;i2s_buf_read(&amp;quot;.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/482853?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 16:22:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d372b5b-e4c8-472b-a8a0-371ad955062f</guid><dc:creator>Qwelectric</dc:creator><description>&lt;p&gt;Just want to clarify on this, does i2s_buf_read() copy the data from the Rx queue into the buffer? I have been trying to make i2s_buf_read work but I can&amp;#39;t seem to do it. Do you have any example codes where it uses i2s_buf_read so I can see?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is my current code and it just uses the i2s_read() function. I want to access the data per sample, not per block. With this, I think i2s_buf_read works better for my application if my assumption that it transfers the Rx queue to the buffer is right.&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/echo_5F00_2-_2800_2_2900_.zip"&gt;devzone.nordicsemi.com/.../echo_5F00_2-_2800_2_2900_.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/481782?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 12:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:839eca07-64c0-4041-b71b-f23dc962e0ed</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;To be able to hear audio data, you would need to have Digital to Analog Converter on your board. This&amp;nbsp;&lt;a href="https://support.saleae.com/faq/technical-faq/convert-i2s-pcm-to-audio"&gt;article&lt;/a&gt;&amp;nbsp;provides information on how to convert I2S/PCM captures into audio.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/481739?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 10:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51aa3703-b16e-4f92-bd12-6cd429268856</guid><dc:creator>Qwelectric</dc:creator><description>&lt;p&gt;I do use i2s_read(). That is how I get the I2S data to the I2S buffer similar to the echo example from zephyr. I want to extract the PCM data from the I2S buffer into somewhere where I can hear the sound the microphone received. The ticket I referenced earlier has the code I use for this application. Idk if you saw it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/481734?ContentTypeID=1</link><pubDate>Fri, 03 May 2024 09:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d833b1-4de4-473a-9700-2885b3e44319</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You might want to look at the functions&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/audio/i2s.html#c.i2s_read"&gt;i2s_read()&lt;/a&gt;&amp;nbsp;which reads the data from Rx queue&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/audio/i2s.html#c.i2s_buf_read"&gt;i2s_buf_read()&lt;/a&gt;&amp;nbsp;which reads the data from Rx queue into the buffer.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/481572?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 13:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4aeee7c-eb9a-4403-97d2-4b1ffbae5acf</guid><dc:creator>Qwelectric</dc:creator><description>&lt;p&gt;I use this code to print the I2S memory as int so I can check the change in values on the serial monitor.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;            unsigned int* value_ptr = (unsigned int*)mem_block;
    		unsigned int value = *value_ptr;
   			printk(&amp;quot;Received audio data: %d\n&amp;quot;, value);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/1wP2pyebblfB64a7HcQKYRMDSddKSIHnt/view?usp=sharing"&gt;This video&lt;/a&gt;&amp;nbsp;can help on this case. I have another&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109354/i2s-configuration-error-when-running-code"&gt;ticket&lt;/a&gt;&amp;nbsp;that might be useful too. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Extracting the Audio Signal from I2S integration</title><link>https://devzone.nordicsemi.com/thread/481567?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 13:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19bdfced-cc6d-40c3-88d2-d45eeef74d18</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Good day! I have a nRF52840 based board that I interfaced with a MEMS microphone (SPH0645) through I2S interfacing. I got to the point where sounds made near the microphone affects the data being fed through the board. I assumed that the interfacing is successful.[/quote]
&lt;p&gt;Could you provide more information about the &amp;quot;data being fed through the board&amp;quot; and about the &amp;quot;sounds made near the microphone&amp;quot;?&lt;br /&gt;&lt;br /&gt;Could you also provide more information about your application?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>