<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: PyAudio Not Listing Devices Even Though aplay -L and Audio Playback Work on i.MX8M Plus</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2094322#M237072</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the quick replay&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1.&amp;nbsp; i have installed pyaudio by using the pip command --&amp;gt; pip3 install pyaudio&lt;BR /&gt;But..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_2-1746772837442.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336855i1DE7F74C86E7C9C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_2-1746772837442.png" alt="mn063_2-1746772837442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. While installing the pyaudio ,it is asking for the portaudio ,So i download the latest portaudio v19 from the link&lt;BR /&gt;&lt;A href="https://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz" target="_blank"&gt;https://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz&lt;/A&gt;. and starts installing.&lt;/P&gt;&lt;P&gt;While running the comand &lt;EM&gt;&lt;STRONG&gt;./configure&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;i got the log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_0-1746772377509.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336849iD2A632D5B991F4B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_0-1746772377509.png" alt="mn063_0-1746772377509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. The ALSA version in the board is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_1-1746772557288.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336853iDC66C1C3ED32A8DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_1-1746772557288.png" alt="mn063_1-1746772557288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How i will properly install the pyaudio ?&lt;BR /&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 06:42:28 GMT</pubDate>
    <dc:creator>mn063</dc:creator>
    <dc:date>2025-05-09T06:42:28Z</dc:date>
    <item>
      <title>PyAudio Not Listing Devices Even Though aplay -L and Audio Playback Work on i.MX8M Plus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2093651#M237043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context&lt;/STRONG&gt;:&lt;BR /&gt;I have prepared an SD card boot setup for the i.MX8M Plus platform. My goal is to install PyAudio and run a real-time speech-to-text application using OpenAI's services.&lt;/P&gt;&lt;P&gt;While doing&amp;nbsp; this&lt;/P&gt;&lt;P&gt;when i try to record or play an audio using the commands&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arecord -D sysdefault:CARD=wm8960audio -f cd -t wav -d 5 MJ_recorded.wav&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D sysdefault:CARD=wm8960audio&amp;nbsp; MJ_recorded.wav&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is working well&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Below is the screenshot for sound devices listed using aplay&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_0-1746707228036.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336710i23C6436729243BC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_0-1746707228036.png" alt="mn063_0-1746707228036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while,&lt;/P&gt;&lt;P&gt;trying to get the sound devices list using &lt;STRONG&gt;pyaudio&lt;/STRONG&gt; i got nothing&lt;/P&gt;&lt;P&gt;(Installation done by usng&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;pip install pyaudio&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;code i have used :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;import pyaudio&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;p = pyaudio.PyAudio()&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;print("Available Audio Devices:")&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;for i in range(p.get_device_count()):&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; info = p.get_device_info_by_index(i)&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; print(f"Device {i}: {info['name']}")&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the above code doesnt list anything...&lt;/P&gt;&lt;P&gt;Kindly give me some suggestions...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2093651#M237043</guid>
      <dc:creator>mn063</dc:creator>
      <dc:date>2025-05-08T12:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: PyAudio Not Listing Devices Even Though aplay -L and Audio Playback Work on i.MX8M Plus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2093791#M237054</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The PyAudio is not supported by default on our BSP. I suggest you confirm that have added the corresponding packages correctly to support this feature and contact software provider to troubleshoot this issue.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 18:06:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2093791#M237054</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2025-05-08T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: PyAudio Not Listing Devices Even Though aplay -L and Audio Playback Work on i.MX8M Plus</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2094322#M237072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the quick replay&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1.&amp;nbsp; i have installed pyaudio by using the pip command --&amp;gt; pip3 install pyaudio&lt;BR /&gt;But..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_2-1746772837442.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336855i1DE7F74C86E7C9C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_2-1746772837442.png" alt="mn063_2-1746772837442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. While installing the pyaudio ,it is asking for the portaudio ,So i download the latest portaudio v19 from the link&lt;BR /&gt;&lt;A href="https://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz" target="_blank"&gt;https://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz&lt;/A&gt;. and starts installing.&lt;/P&gt;&lt;P&gt;While running the comand &lt;EM&gt;&lt;STRONG&gt;./configure&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;i got the log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_0-1746772377509.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336849iD2A632D5B991F4B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_0-1746772377509.png" alt="mn063_0-1746772377509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. The ALSA version in the board is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mn063_1-1746772557288.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/336853iDC66C1C3ED32A8DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mn063_1-1746772557288.png" alt="mn063_1-1746772557288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How i will properly install the pyaudio ?&lt;BR /&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 06:42:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PyAudio-Not-Listing-Devices-Even-Though-aplay-L-and-Audio/m-p/2094322#M237072</guid>
      <dc:creator>mn063</dc:creator>
      <dc:date>2025-05-09T06:42:28Z</dc:date>
    </item>
  </channel>
</rss>

