{"id":6862,"date":"2019-04-18T15:17:37","date_gmt":"2019-04-18T06:17:37","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=6862"},"modified":"2022-03-28T13:41:15","modified_gmt":"2022-03-28T05:41:15","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8raspberry-pi%e9%a1%b9%e7%9b%ae%e4%b8%ad%e6%b7%bb%e5%8a%a0siri%e6%8e%a7%e5%88%b6","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/deviceplus\/how-tos\/add-siri-control-raspberry-pi-project","title":{"rendered":"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236"},"content":{"rendered":"<div class=\u201cthe_content_wrapper\u201d>\n\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e<a href=\"https:\/\/www.deviceplus.com\/\">DevicePlus.com<\/a>\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7337\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/03\/speech-icon-2797263_1280-e1520921971769.png\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 speech icon\" width=\"600\" height=\"600\" \/><\/p>\n<p><strong>1. \u76ee\u7684<\/strong><br \/>\n\u672c\u6559\u7a0b\u65e8\u5728\u6559\u60a8\u5982\u4f55\u4f7f\u7528SiriControl\u5f00\u6e90Python\u6846\u67b6\u5728RaspberryPi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u529f\u80fd\u548c\u63a7\u5236\u529f\u80fd\u3002<\/p>\n<p><strong>2. \u6982\u8ff0<\/strong><\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u5c06\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6e\u548c\u4f7f\u7528SiriControl Python\u6846\u67b6\u3002\u6211\u5c06\u5229\u7528SiriControl\u6a21\u5757\u548cRaspberry Pi 3\u6765\u70b9\u4eae\u548c\u7184\u706d\u4e00\u4e2aLED\u3002\u5b66\u5b8c\u672c\u6559\u7a0b\u4e4b\u540e\uff0c\u60a8\u5c06\u80fd\u591f\u4f7f\u7528SiriControl\u5c06Siri\u8bed\u97f3\u547d\u4ee4\u6dfb\u52a0\u5230\u4efb\u4f55Raspberry Pi\u9879\u76ee\u4e2d\u3002\u5f00\u59cb\u5b66\u4e60\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u62e5\u6709\u4ee5\u4e0b\u8bbe\u5907\u548c\u6750\u6599\uff0c\u5e76\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5RaspberryPi\u4e14\u8f6f\u4ef6\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p><strong>3. \u8bbe\u5907<\/strong><\/p>\n<ol>\n<li><strong>Raspberry Pi 3<\/strong> &#8211; <a href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-3-model-b\/\">Raspberry Pi\u94fe\u63a5<\/a><\/li>\n<li><strong>HDMI\u7ebf<\/strong>&#8211;<a href=\"https:\/\/www.amazon.com\/AmazonBasics-High-Speed-HDMI-Cable-1-Pack\/dp\/B014I8SSD0\">HDMI\u7ebf\u94fe\u63a5<\/a><\/li>\n<li><strong>LED<\/strong> &#8211; <a href=\"https:\/\/www.adafruit.com\/product\/754?gclid=EAIaIQobChMI4cOV47yc2QIVBpF-Ch2o_g5SEAQYBCABEgIk3PD_BwE\">LED\u7684Adafruit\u94fe\u63a5<\/a><\/li>\n<li><strong>\u9f20\u6807 + \u952e\u76d8<\/strong> &#8211; <a href=\"https:\/\/www.amazon.com\/gp\/product\/B00BP5KOPA\/ref=oh_aui_detailpage_o01_s00?ie=UTF8&amp;psc=1\">\u952e\u76d8\/\u9f20\u6807\u7684Amazon\u94fe\u63a5<\/a><\/li>\n<li><strong>\u663e\u793a\u5668\/TV <\/strong> &#8211; \u4efb\u4f55\u5e26HDMI\u63a5\u53e3\u7684TV\u6216\u663e\u793a\u5668<\/li>\n<li><strong>\u8df3\u7ebf<\/strong> &#8211; <a href=\"https:\/\/www.amazon.com\/GenBasic-Female-Solderless-Breadboard-Prototyping\/dp\/B01MS9GY7W\/ref=sr_1_1_sspa?s=electronics&amp;ie=UTF8&amp;qid=1515705634&amp;sr=1-1-spons&amp;keywords=jumper+wires&amp;psc=1\">\u8df3\u7ebf\u7684Amazon\u94fe\u63a5<\/a><\/li>\n<li><strong>Micro USB\u7535\u7f06<\/strong> &#8211; <a href=\"https:\/\/www.amazon.com\/AmazonBasics-Male-Micro-Cable-Black\/dp\/B07232M876\/ref=sr_1_3?s=electronics&amp;ie=UTF8&amp;qid=1518304809&amp;sr=1-3&amp;keywords=micro+usb\">Micro USB \u7535\u7f06\u7684Amazon\u94fe\u63a5<\/a><\/li>\n<li><strong>\u9762\u5305\u677f<\/strong> &#8211; <a href=\"https:\/\/www.amazon.com\/Elegoo-Breadboard-Solderless-Distribution-Connecting\/dp\/B01EV6LJ7G\/ref=sr_1_1_sspa?s=electronics&amp;ie=UTF8&amp;qid=1515707694&amp;sr=1-1-spons&amp;keywords=breadboard&amp;psc=1\">\u9762\u5305\u677f\u7684Amazon\u94fe\u63a5<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>4. \u76ee\u5f55<\/strong><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u4e3aSiriControl\u521b\u5efa\u4e00\u4e2aGmail\u5e10\u6237<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">iOS\u8bbe\u5907\u8bbe\u7f6e<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">SiriControl<\/span>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u8bbe\u7f6eSiriControl<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u521b\u5efa\u81ea\u5df1\u7684\u6a21\u5757<\/span><\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u7535\u8def\u63a5\u7ebf<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u4e0a\u4f20\u5e76\u8fd0\u884c\u7a0b\u5e8f<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>\u7a0b\u5e8f<\/strong><\/p>\n<h2>1.0 \u4e3aSiriControl\u521b\u5efa\u4e00\u4e2aGmail\u5e10\u6237<\/h2>\n<p>SiriControl\u6a21\u5757\u9700\u8981\u4e00\u4e2aGmail\u5e10\u6237\u624d\u80fd\u5de5\u4f5c\u3002\u6211\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684Gmail\u5e10\u6237\uff0c\u4ec5\u4f9bSiriControl\u4f7f\u7528\u3002\u6211\u5efa\u8bae\u60a8\u4e5f\u8fd9\u6837\u505a\u3002\u8fd9\u662f\u4e00\u4e2a\u597d\u4e3b\u610f\uff0c\u56e0\u4e3aPython\u811a\u672c\u53ef\u4ee5\u5305\u542b\u8be5\u5e10\u6237\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n<p>\u521b\u5efa\u5e10\u6237\u540e\uff0c\u6211\u4eec\u9700\u8981\u5141\u8bb8\u4e0d\u592a\u5b89\u5168\u7684\u5e94\u7528\u7a0b\u5e8f\u8bbf\u95eeGmail\u3002\u8fd9\u662f\u56e0\u4e3aGmail\u670d\u52a1\u5668\u5c06Python\u811a\u672c\u89c6\u4e3a\u4e0d\u592a\u5b89\u5168\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u5728<strong>Sign-in &amp; Security\uff08\u767b\u5f55\u548c\u5b89\u5168\uff09<\/strong> \u90e8\u5206\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<div id=\"attachment_7272\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7272\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe1\" width=\"700\" height=\"302\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1-300x129.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1-260x112.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1-50x22.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig1-150x65.jpg 150w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe1\uff1a\u5e94\u7528\u7a0b\u5e8f\u8bbf\u95ee\uff08\u5173\u95ed\uff09<\/p>\n<\/div>\n<div id=\"attachment_7273\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7273\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe2\" width=\"700\" height=\"300\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2-300x129.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2-260x111.jpg 260w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2-50x21.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_App-Access-Fig2-150x64.jpg 150w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe2\uff1a\u5e94\u7528\u7a0b\u5e8f\u8bbf\u95ee\uff08\u5f00\u542f\uff09<\/p>\n<\/div>\n<p>\u8bbe\u7f6eGmail\u5e10\u6237\u7684\u6700\u540e\u4e00\u6b65\u662f\u542f\u7528IMAP\u534f\u8bae\u3002\u8bbe\u7f6e\u8def\u5f84\u5982\u4e0b\uff1a <strong>Gmail-&gt;Settings-&gt;Gear Part-&gt;Settings-&gt;Forwarding and POP\/IMAP-&gt;IMAP Access<\/strong>.<\/p>\n<div id=\"attachment_7274\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7274\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe3\" width=\"700\" height=\"446\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3-300x191.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3-229x146.jpg 229w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3-50x32.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-disabled-Fig3-118x75.jpg 118w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe3\uff1aIMAP\uff08\u7981\u7528\uff09<\/p>\n<\/div>\n<div id=\"attachment_7275\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7275\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe4\" width=\"700\" height=\"438\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4-300x188.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4-233x146.jpg 233w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4-50x31.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_IMAP-enabled-Fig4-120x75.jpg 120w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe4\uff1aIMAP\uff08\u542f\u7528\uff09<\/p>\n<\/div>\n<h2>2.0 iOS\u8bbe\u5907\u8bbe\u7f6e<\/h2>\n<p>\u5c06iOS\u8bbe\u5907\u4e0a\u7684\u201cNotes\u201d\u8fde\u81f3\u5df2\u7ecf\u8bbe\u7f6e\u597d\u4e0eSiriControl\u914d\u5408\u4f7f\u7528\u7684Gmail\u5e10\u6237\u3002\u9009\u62e9 <strong>Settings-&gt;Accounts &amp; Passwords-&gt;Add Account\uff08\u8bbe\u7f6e->\u5e10\u6237\u548c\u5bc6\u7801->\u6dfb\u52a0\u5e10\u6237\uff09\uff0c<\/strong> \u6dfb\u52a0\u521a\u624d\u8bbe\u7f6e\u597d\u7684Gmail\u5e10\u6237\u3002\u6dfb\u52a0\u8be5\u5e10\u6237\u540e\uff0c\u9009\u62e9\u5b83\u5e76\u542f\u7528Notes\uff08\u56fe6\uff1aGmail\u5e10\u6237\u4e0b\u7684Notes\uff09\u3002\u63a5\u4e0b\u6765\uff0c\u9009\u62e9 <strong>Settings-&gt;Notes\uff0c\u5e76\u542f\u7528\u201cOn My iPhone\u201d Account\uff08\u6211iPhone\u4e0a\u7684\u5e10\u6237\uff09\u3002<\/strong> \u7136\u540e\uff0c\u5c06 <strong>Default Account<\/strong> \u6539\u4e3aGmail\u5e10\u6237\u3002\u73b0\u5728\uff0c\u6211\u7684iOS\u8bbe\u5907\u8bbe\u7f6e\u5b8c\u6bd5\u3002<\/p>\n<div id=\"attachment_7276\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7276\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe5\" width=\"500\" height=\"889\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5.jpg 500w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5-169x300.jpg 169w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5-82x146.jpg 82w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5-28x50.jpg 28w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_accounts-passwords-Fig5-42x75.jpg 42w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe5\uff1a\u5e10\u6237\u548c\u5bc6\u7801<\/p>\n<\/div>\n<div id=\"attachment_7277\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7277\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe6\" width=\"500\" height=\"889\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6.jpg 500w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6-169x300.jpg 169w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6-82x146.jpg 82w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6-28x50.jpg 28w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_notes-under-gmail-account-Fig6-42x75.jpg 42w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe6\uff1aGmail\u5e10\u6237\u4e0b\u7684Notes<\/p>\n<\/div>\n<div id=\"attachment_7278\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7278\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe7\" width=\"500\" height=\"889\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7.jpg 500w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7-169x300.jpg 169w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7-82x146.jpg 82w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7-28x50.jpg 28w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_default-account-notes-Fig7-42x75.jpg 42w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe7\uff1a\u9ed8\u8ba4\u5e10\u6237-Notes<\/p>\n<\/div>\n<h2>3.0 Siri\u63a7\u5236<\/h2>\n<p><strong>3.1 \u8bbe\u7f6eSiriControl<\/strong><\/p>\n<p>\u8981\u4f7f\u7528SiriControl\uff0c\u6211\u4eec\u9700\u8981\u5c06\u6a21\u5757\u7684\u8d44\u6e90\u5e93\u514b\u9686\u5230RaspberryPi\u3002\u8981\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u8bf7\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>1. sudo apt-get update<br \/>\n2. sudo apt-get install git-core<br \/>\n3. git clone <a href=\"https:\/\/github.com\/theraspberryguy\/SiriControl-System\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/theraspberryguy\/SiriControl-System<\/a><\/p>\n<div id=\"attachment_7279\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7279\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe8\" width=\"700\" height=\"465\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8-300x199.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8-220x146.jpg 220w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8-50x33.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_cloning-repository-Fig8-113x75.jpg 113w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe8\uff1a\u514b\u9686\u8d44\u6e90\u5e93<\/p>\n<\/div>\n<p>\u514b\u9686\u8d44\u6e90\u5e93\u4e4b\u540e\uff0c\u6253\u5f00\u811a\u672csiricontrol.py\u3002\u5728\u811a\u672c\u4e2d\u8f93\u5165Gmail\u5e10\u6237\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u7136\u540e\u4fdd\u5b58\u811a\u672c\u3002<\/p>\n<p><strong>3.2 \u521b\u5efa\u81ea\u5df1\u7684\u6a21\u5757<\/strong><\/p>\n<p><strong>Siricontrol.py<\/strong> \u8fd0\u884c\u65f6\uff0c\u4f1a\u4ece\u6a21\u5757\uff08modules\uff09\u6587\u4ef6\u5939\u4e2d\u52a0\u8f7d\u6a21\u5757\u811a\u672c\u3002\u6267\u884c\u4e0d\u540c\u7684\u4efb\u52a1\u65f6\uff0c\u6309\u7167\u6a21\u677f\u7f16\u5199\u65b0\u7684\u6a21\u5757\u811a\u672c\u5f88\u91cd\u8981\u3002\u56e0\u4e3a\u6211\u60f3\u63a7\u5236\u4e00\u4e2aLED\uff0c\u6240\u4ee5\u6211\u5199\u4e86\u4e00\u4e2a\u811a\u672c\u6765\u6253\u5f00LED <strong>(LED_on.py)<\/strong> \u548c\u4e00\u4e2a\u811a\u672c\u6765\u5173\u95edLED <strong>(LED_off.py)<\/strong>.<\/p>\n<p>\u8981\u5236\u4f5c\u81ea\u5df1\u7684\u6a21\u5757\uff0c\u8bf7\u5728\u6a21\u677f\u811a\u672c\u4e2d\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u5728\u201cmoduleName\u201d\u4e2d\u547d\u540d\u8be5\u6a21\u5757<br \/>\n2. \u4e3a\u6a21\u5757\u63d0\u4f9b\u201ccommandWords\u201d\uff0c\u4ee5\u4fbf\u8ba9Siri\u6267\u884c\u547d\u4ee4\u3002<br \/>\n3. \u5728execute(command) \u51fd\u6570\u4e0b\u5199\u5165\u60f3\u8981\u6267\u884c\u7684\u529f\u80fd\u3002<br \/>\n4. \u786e\u4fdd\u5c06\u811a\u672c\u4fdd\u5b58\u5728\u6a21\u5757\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n<h2>4.0 \u8fde\u63a5\u7535\u8def<\/h2>\n<p>\u4e3a\u4e86\u8ba9SiriControl\u6267\u884c\u547d\u4ee4\uff0c\u6211\u642d\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684LED\u7535\u8def\u3002\u6211\u603b\u662f\u559c\u6b22\u7528Fritzing\u7ed8\u5236\u63a5\u7ebf\u56fe\u3002Fritzing\u662f\u4e00\u6b3e\u5f00\u6e90\u539f\u7406\u56fe\u8bbe\u8ba1\u548cPCB\u5e03\u7ebf\u8f6f\u4ef6\u3002Fritzing\u7684\u4e0b\u8f7d\u5730\u5740\uff08\u53ef\u9009\uff09\u5982\u4e0b\uff1a<a href=\"https:\/\/fritzing.org\/home\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/fritzing.org\/home\/<\/a><\/p>\n<div id=\"attachment_7280\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7280\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe9\" width=\"700\" height=\"624\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9-300x267.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9-164x146.jpg 164w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9-50x45.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_RaspPi_LED-Fig9-84x75.jpg 84w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe9\uff1aRaspberry Pi LED\u539f\u7406\u56fe<\/p>\n<\/div>\n<p>LED\u548c\u7535\u963b\u5e94\u4e32\u8054\u5728\u5f15\u811a11\uff08GPIO17\uff09\u548c\u5f15\u811a25\uff08\u5730\uff09\u4e4b\u95f4\u3002\u7535\u963b\u7684\u4f5c\u7528\u662f\u9650\u5236\u6d41\u8fc7LED\u7684\u7535\u6d41\uff0c\u5e76\u5e94\u6839\u636e\u60a8\u7684LED\u8fdb\u884c\u76f8\u5e94\u8c03\u6574\uff0c\u4ee5\u9632\u6b62\u7535\u6d41\u8fc7\u5927\u5c06LED\u70e7\u574f\u3002\u8bf7\u8bb0\u4f4f\uff0cLED\u8f83\u957f\u7684\u5f15\u7ebf\u662f\u6b63\u6781\uff0c\u5e94\u8fde\u63a5\u5230\u5f15\u811a11\u3002<\/p>\n<h2>5.0 \u4e0a\u4f20\u5e76\u8fd0\u884c\u7a0b\u5e8f<\/h2>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e\uff0c\u6211\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884cSiriControl\u811a\u672c\uff1a<\/p>\n<p>python siricontrol.py<\/p>\n<p>\u8be5\u811a\u672c\u5f00\u59cb\u8fd0\u884c\uff0c\u5e76\u4f7f\u7528\u6a21\u5757\u6587\u4ef6\u5939\u4e2d\u7684\u6240\u6709\u6a21\u5757\u8fdb\u884c\u521d\u59cb\u5316\u3002<\/p>\n<div id=\"attachment_7281\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7281\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe10\" width=\"700\" height=\"427\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10-300x183.jpg 300w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10-239x146.jpg 239w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10-50x31.jpg 50w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_On_Script-Fig10-123x75.jpg 123w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe10\uff1a\u6267\u884cLED\u70b9\u4eae<\/p>\n<\/div>\n<div id=\"attachment_7282\" style=\"width: 710px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7282\" src=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11.jpg\" alt=\"\u5982\u4f55\u5728Raspberry Pi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u63a7\u5236 \u56fe11\" width=\"700\" height=\"738\" srcset=\"https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11.jpg 700w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11-285x300.jpg 285w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11-138x146.jpg 138w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11-47x50.jpg 47w, https:\/\/techclass.wfjydl.com\/wp-content\/uploads\/2018\/02\/SiriControl_LED_Off_Script-Fig11-71x75.jpg 71w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p class=\"wp-caption-text\">\u56fe11\uff1a\u6267\u884cLED\u7184\u706d<\/p>\n<\/div>\n<p>\u73b0\u5728\u6211\u547d\u4ee4Siri\uff0c\u201cNote: Turn on LED\uff08\u6ce8\u610f\uff1a\u6253\u5f00LED\uff09\u201d\uff0cLED\u706f\u4eae\u8d77\uff0c\u540c\u65f6\u811a\u672c\u4f1a\u544a\u8bc9\u6211\u5b83\u6267\u884c\u4e86\u6211\u7684\u547d\u4ee4\u5e76\u4e14\u6b63\u5728\u503e\u542c\u53e6\u4e00\u4e2a\u547d\u4ee4\u3002\u6211\u73b0\u5728\u8bf4\uff0c\u201cNote: Turn off LED\uff08\u6ce8\u610f\uff1a\u5173\u95edLED\uff09\u201d\uff0cLED\u7184\u706d\u3002\u53ea\u8981\u7b26\u5408\u4ee5\u4e0b\u6761\u4ef6\uff0c\u8be5\u811a\u672c\u5c31\u4f1a\u6267\u884c\u6211\uff08\u4e0d\u7ba1\u5728\u4efb\u4f55\u5730\u65b9\uff09\u5bf9Siri\u53d1\u51fa\u7684\u547d\u4ee4\uff1a<\/p>\n<p>1. Raspberry Pi\u6b63\u5728\u8fd0\u884c\u8be5\u811a\u672c\u3002<br \/>\n2. Raspberry Pi\u5df2\u8fde\u81f3\u4e92\u8054\u7f51\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u8f6e\u8be2Gmail\u5e10\u6237\u3002<\/p>\n<p>\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u4e3a\u4efb\u610fRaspberry Pi\u9879\u76ee\u6dfb\u52a0\u4efb\u4f55SiriControl\u63a7\u5236\u6a21\u5757\u3002\u867d\u7136\u6211\u5728\u8fd9\u4e2a\u9879\u76ee\u4e2d\u4f7f\u7528\u4e86Pi\uff0c\u4f46\u662f\u8be5\u6559\u7a0b\u5728\u5b89\u88c5\u4e86Python\u7684\u5176\u4ed6Linux\u5f00\u53d1\u677f\u4e0a\u540c\u6837\u53ef\u4ee5\u5de5\u4f5c\u3002<\/p>\n<h2>6.0 \u9644\u4ef6\uff1a\u811a\u672c<\/h2>\n<p><strong>6.1 Siricontrol.py<\/strong><\/p>\n<p><!-- Crayon Syntax Highlighter v_2.7.2_beta --><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>import time\r\n\r\n\r\n\r\n\r\nimport imaplib\r\n\r\n\r\nimport email\r\n\r\n\r\nimport os\r\n\r\n\r\nimport pkgutil\r\n\r\n\r\n \r\n\r\n\r\n##########################################\r\n\r\n\r\n \r\n\r\n\r\n# Add your gmail username and password here\r\n\r\n\r\n \r\n\r\n\r\nusername = \"\"\r\n\r\n\r\npassword = \"\"\r\n\r\n\r\n \r\n\r\n\r\n##########################################\r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\nclass ControlException(Exception):\r\n\r\n\r\n    pass\r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\nclass Control():\r\n\r\n\r\n    def __init__(self, username, password):\r\n\r\n\r\n        print(\"------------------------------------------------------\")\r\n\r\n\r\n        print(\"-                \tSIRI CONTROL                \t-\")\r\n\r\n\r\n        print(\"-       \tCreated by Sanjeet Chatterjee        \t-\")\r\n\r\n\r\n        print(\"-  \tWebsite: thereallycoolstuff.wordpress.com     -\")\r\n\r\n\r\n        print(\"------------------------------------------------------\")\r\n\r\n\r\n \r\n\r\n\r\n        try:\r\n\r\n\r\n        \tself.last_checked = -1\r\n\r\n\r\n        \tself.mail = imaplib.IMAP4_SSL(\"imap.gmail.com\", 993)\r\n\r\n\r\n        \tself.mail.login(username, password)\r\n\r\n\r\n        \tself.mail.list()\r\n\r\n\r\n        \tself.mail.select(\"Notes\")\r\n\r\n\r\n \r\n\r\n\r\n        \t# Gets last Note id to stop last command from executing\r\n\r\n\r\n        \tresult, uidlist = self.mail.search(None, \"ALL\")\r\n\r\n\r\n        \ttry:\r\n\r\n\r\n            \tself.last_checked = uidlist[0].split()[-1]\r\n\r\n\r\n        \texcept IndexError:\r\n\r\n\r\n            \tpass\r\n\r\n\r\n \r\n\r\n\r\n        \tself.load()\r\n\r\n\r\n        \tself.handle()\r\n\r\n\r\n        except imaplib.IMAP4.error:\r\n\r\n\r\n        \tprint(\"Your username and password is incorrect\")\r\n\r\n\r\n        \tprint(\"Or IMAP is not enabled.\")\r\n\r\n\r\n \r\n\r\n\r\n    def load(self):\r\n\r\n\r\n        \"\"\"Try to load all modules found in the modules folder\"\"\"\r\n\r\n\r\n        print(\"\\n\")\r\n\r\n\r\n        print(\"Loading modules...\")\r\n\r\n\r\n        self.modules = []\r\n\r\n\r\n        path = os.path.join(os.path.dirname(__file__), \"modules\")\r\n\r\n\r\n        directory = pkgutil.iter_modules(path=[path])\r\n\r\n\r\n        for finder, name, ispkg in directory:\r\n\r\n\r\n        \ttry:\r\n\r\n\r\n            \tloader = finder.find_module(name)\r\n\r\n\r\n            \tmodule = loader.load_module(name)\r\n\r\n\r\n            \tif hasattr(module, \"commandWords\") \\\r\n\r\n\r\n                    \tand hasattr(module, \"moduleName\") \\\r\n\r\n\r\n                    \tand hasattr(module, \"execute\"):\r\n\r\n\r\n                \tself.modules.append(module)\r\n\r\n\r\n                \tprint(\"The module '{0}' has been loaded, \"\r\n\r\n\r\n                      \t\"successfully.\".format(name))\r\n\r\n\r\n            \telse:\r\n\r\n\r\n                \tprint(\"[ERROR] The module '{0}' is not in the \"\r\n\r\n\r\n                      \t\"correct format.\".format(name))\r\n\r\n\r\n        \texcept:\r\n\r\n\r\n            \tprint(\"[ERROR] The module '\" + name + \"' has some errors.\")\r\n\r\n\r\n        print(\"\\n\")\r\n\r\n\r\n \r\n\r\n\r\n    def fetch_command(self):\r\n\r\n\r\n        \"\"\"Retrieve the last Note created if new id found\"\"\"\r\n\r\n\r\n        self.mail.list()\r\n\r\n\r\n        self.mail.select(\"Notes\")\r\n\r\n\r\n \r\n\r\n\r\n        result, uidlist = self.mail.search(None, \"ALL\")\r\n\r\n\r\n        try:\r\n\r\n\r\n        \tlatest_email_id = uidlist[0].split()[-1]\r\n\r\n\r\n        except IndexError:\r\n\r\n\r\n        \treturn\r\n\r\n\r\n \r\n\r\n\r\n        if latest_email_id == self.last_checked:\r\n\r\n\r\n        \treturn\r\n\r\n\r\n \r\n\r\n\r\n        self.last_checked = latest_email_id\r\n\r\n\r\n        result, data = self.mail.fetch(latest_email_id, \"(RFC822)\")\r\n\r\n\r\n        voice_command = email.message_from_string(data[0][1].decode('utf-8'))\r\n\r\n\r\n        return str(voice_command.get_payload()).lower().strip()\r\n\r\n\r\n \r\n\r\n\r\n    def handle(self):\r\n\r\n\r\n        \"\"\"Handle new commands\r\n\r\n\r\n\r\n\r\n\r\n\r\n        Poll continuously every second and check for new commands.\r\n\r\n\r\n        \"\"\"\r\n\r\n\r\n        print(\"Fetching commands...\")\r\n\r\n\r\n        print(\"\\n\")\r\n\r\n\r\n \r\n\r\n\r\n        while True:\r\n\r\n\r\n        \ttry:\r\n\r\n\r\n            \tcommand = self.fetch_command()\r\n\r\n\r\n            \tif not command:\r\n\r\n\r\n                \traise ControlException(\"No command found.\")\r\n\r\n\r\n \r\n\r\n\r\n            \tprint(\"The word(s) '\" + command + \"' have been said\")\r\n\r\n\r\n            \tfor module in self.modules:\r\n\r\n\r\n                \tfoundWords = []\r\n\r\n\r\n                \tfor word in module.commandWords:\r\n\r\n\r\n                    \tif str(word) in command:\r\n\r\n\r\n                            foundWords.append(str(word))\r\n\r\n\r\n                \tif len(foundWords) == len(module.commandWords):\r\n\r\n\r\n                    \ttry:\r\n\r\n\r\n                            module.execute(command)\r\n\r\n\r\n                        \tprint(\"The module {0} has been executed \"\r\n\r\n\r\n                              \t\"successfully.\".format(module.moduleName))\r\n\r\n\r\n                    \texcept:\r\n\r\n\r\n                        \tprint(\"[ERROR] There has been an error \"\r\n\r\n\r\n                              \t\"when running the {0} module\".format(\r\n\r\n\r\n                                      module.moduleName))\r\n\r\n\r\n                \telse:\r\n\r\n\r\n                    \tprint(\"\\n\")\r\n\r\n\r\n        \texcept (TypeError, ControlException):\r\n\r\n\r\n            \tpass\r\n\r\n\r\n        \texcept Exception as exc:\r\n\r\n\r\n            \tprint(\"Received an exception while running: {exc}\".format(\r\n\r\n\r\n                \t**locals()))\r\n\r\n\r\n            \tprint(\"Restarting...\")\r\n\r\n\r\n        \ttime.sleep(1)\r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\nif __name__ == '__main__':\r\n\r\n\r\n    Control(username, password)\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>6.2 Led_on.py<\/strong><\/p>\n<p>#You can import any modules required here<br \/>\nimport RPi.GPIO as GPIO #import GPIO module<br \/>\nimport time<\/p>\n<p>#This is name of the module &#8211; it can be anything you want<br \/>\nmoduleName = &#8220;LED_on&#8221;<\/p>\n<p>#These are the words you must say for this module to be executed<br \/>\ncommandWords = [&#8220;turn&#8221;, &#8220;on&#8221;, &#8220;led&#8221;]\n<p>#This is the main function which will be execute when the above command words are said<br \/>\ndef execute(command):<br \/>\nLED = 11 # Set LED pin to pin 11<\/p>\n<p>GPIO.setmode(GPIO.BOARD)<br \/>\nGPIO.setup(LED, GPIO.OUT) #configure LED as an output<\/p>\n<p>print(&#8220;\\n&#8221;)<br \/>\nprint(&#8220;LED is On.&#8221;)<\/p>\n<p><strong>6.3 Led_off.py<\/strong><\/p>\n<p>#You can import any modules required here<br \/>\nimport RPi.GPIO as GPIO #import GPIO module<br \/>\nimport time<\/p>\n<p>#This is name of the module &#8211; it can be anything you want<br \/>\nmoduleName = &#8220;LED_off&#8221;<\/p>\n<p>#These are the words you must say for this module to be executed<br \/>\ncommandWords = [&#8220;turn&#8221;, &#8220;off&#8221;, &#8220;led&#8221;]\n<p>#This is the main function which will be execute when the above command words are said<br \/>\ndef execute(command):<br \/>\nLED = 11 # Set LED pin to pin 11<\/p>\n<p>GPIO.setmode(GPIO.BOARD)<br \/>\nGPIO.setup(LED, GPIO.OUT) #configure LED as an output<\/p>\n<p>print(&#8220;\\n&#8221;)<br \/>\nprint(&#8220;LED is off.&#8221;)<br \/>\nGPIO.output(LED, GPIO.LOW) #turn LED on<\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\">\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/micro.wfjydl.com\/deviceplus\/wp-content\/uploads\/2018\/08\/Device-Plus-logo-for-author-info-75x75.png\" width=\"64\" height=\"64\" alt=\"DevicePlus \u7f16\u8f91\u56e2\u961f\">\n\t<\/div>\n<div class=\"desc-wrapper\">\n<h5>DevicePlus \u7f16\u8f91\u56e2\u961f<\/h5>\n<div class=\"desc\">\n<p>\u8bbe\u5907\u5347\u7ea7\u7248\u9002\u7528\u4e8e\u6240\u6709\u70ed\u7231\u7535\u5b50\u548c\u673a\u7535\u4e00\u4f53\u5316\u7684\u4eba\u3002<\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eDevicePlus.com\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002 1. \u76ee\u7684 \u672c\u6559\u7a0b\u65e8\u5728\u6559\u60a8\u5982\u4f55\u4f7f\u7528SiriControl\u5f00\u6e90Python\u6846\u67b6\u5728RaspberryPi\u9879\u76ee\u4e2d\u6dfb\u52a0Siri\u529f\u80fd\u548c\u63a7\u5236\u529f\u80fd\u3002 2. \u6982\u8ff0 \u5728\u672c\u6559\u7a0b\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":18550,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1129],"tags":[],"class_list":["post-6862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-tos"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/6862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=6862"}],"version-history":[{"count":6,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/6862\/revisions"}],"predecessor-version":[{"id":9431,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/6862\/revisions\/9431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/18550"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=6862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=6862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=6862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}