<?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[Azure IoT Handle Example for Speaker play_cloud command?]]></title><description><![CDATA[<p dir="auto">Anyone know what to put here for the Payload?  I want to play a sound with the play_cloud command.</p>
<p dir="auto"><img src="/assets/uploads/files/1659459299492-25cfae68-050e-4cb5-accf-b60e10c6a435-image.png" alt="0_1659459296028_25cfae68-050e-4cb5-accf-b60e10c6a435-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1659459364206-76a791e2-edc8-485e-8b20-d679efeb946f-image.png" alt="0_1659459360602_76a791e2-edc8-485e-8b20-d679efeb946f-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/4493/azure-iot-handle-example-for-speaker-play_cloud-command</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:31:08 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4493.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Aug 2022 16:56:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Azure IoT Handle Example for Speaker play_cloud command? on Tue, 02 Aug 2022 19:22:07 GMT]]></title><description><![CDATA[<p dir="auto">In case anyone else has the same issue...the handler works if you hard-code the path to the Wav file</p>
<p dir="auto"><img src="/assets/uploads/files/1659467225560-c6876809-3335-4966-b617-200384690612-image.png" alt="0_1659467223749_c6876809-3335-4966-b617-200384690612-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">but cloud path doesn't work with the same trick, it still gives the Data format is not valid error.</p>
]]></description><link>https://community.m5stack.com/post/18165</link><guid isPermaLink="true">https://community.m5stack.com/post/18165</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Tue, 02 Aug 2022 19:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Azure IoT Handle Example for Speaker play_cloud command? on Tue, 02 Aug 2022 18:11:06 GMT]]></title><description><![CDATA[<p dir="auto">I also tested this with a local file but get a different error:</p>
<pre><code>OSError [Errno 2] ENOENT
</code></pre>
]]></description><link>https://community.m5stack.com/post/18159</link><guid isPermaLink="true">https://community.m5stack.com/post/18159</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Tue, 02 Aug 2022 18:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to Azure IoT Handle Example for Speaker play_cloud command? on Tue, 02 Aug 2022 17:44:08 GMT]]></title><description><![CDATA[<p dir="auto">I added it to my model so you get a UI field in Azure now for pasting in the cloud wav file URL:</p>
<p dir="auto"><img src="/assets/uploads/files/1659462220634-0392d7a1-8896-4938-a626-f5ce3d22f44f-image-resized.png" alt="0_1659462218561_0392d7a1-8896-4938-a626-f5ce3d22f44f-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The command gets to the device but it can't parse it for some reason, get a Data Format Invalid error.</p>
<pre><code>Traceback (most recent call last):
  File "libs/m5mqtt.py", line 101, in _msg_deal_task
  File "libs/m5mqtt.py", line 88, in update
  File "umqtt/robust.py", line 80, in check_msg
  File "umqtt/simple.py", line 271, in check_msg
  File "umqtt/simple.py", line 259, in wait_msg
  File "libs/m5mqtt.py", line 50, in _on_data
  File "IoTcloud/Azure.py", line 333, in direct_method_cb
  File "main.py", line 32, in azure_direct_Speaker_play_cloud
  File "hardware/speaker.py", line 135, in playCloudWAV
  File "hardware/speaker.py", line 82, in playWAV
ValueError: Data Format is not valid
</code></pre>
]]></description><link>https://community.m5stack.com/post/18158</link><guid isPermaLink="true">https://community.m5stack.com/post/18158</guid><dc:creator><![CDATA[greenleaf]]></dc:creator><pubDate>Tue, 02 Aug 2022 17:44:08 GMT</pubDate></item></channel></rss>