{"id":1388,"date":"2023-03-10T21:12:56","date_gmt":"2023-03-10T13:12:56","guid":{"rendered":"https:\/\/usei.cn\/?p=1388"},"modified":"2023-03-28T08:24:17","modified_gmt":"2023-03-28T00:24:17","slug":"snowboy-%e8%af%ad%e9%9f%b3%e5%94%a4%e9%86%92","status":"publish","type":"post","link":"https:\/\/usei.cn\/index.php\/2023\/03\/10\/snowboy-%e8%af%ad%e9%9f%b3%e5%94%a4%e9%86%92\/","title":{"rendered":"Snowboy \u8bed\u97f3\u5524\u9192"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u73af\u5883\u914d\u7f6e Mac<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install swig portaudio sox\npip install pyaudio<\/code><\/pre>\n\n\n\n<p>\u786e\u4fdd\u5f55\u97f3\u53ef\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rec t.wav<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u514b\u9686\u4ee3\u7801<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/Kitt-AI\/snowboy.git<\/code><\/pre>\n\n\n\n<p>\u76ee\u5f55\u4e0b\u7684&nbsp;<strong><code>snowboydecoder.py<\/code><\/strong>&nbsp;\u6587\u4ef6\u3002<br>\u5c06\u7b2c 5 \u884c\u4ee3\u7801&nbsp;<strong><code>from * import snowboydetect<\/code><\/strong>&nbsp;\u6539\u4e3a&nbsp;<strong><code>import snowboydetect<\/code><\/strong>&nbsp;\u5373\u53ef\u76f4\u63a5\u8fd0\u884c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u751f\u6210Python \u5305\u88c5\u6587\u4ef6<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cd swig\/python3\nmake<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fd0\u884cdemo<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 demo.py resources\/models\/snowboy.umdl<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b9a\u5236\u81ea\u5df1\u7684\u6a21\u578b<\/h2>\n\n\n\n<p><a href=\"https:\/\/snowboy.hahack.com\/\">https:\/\/snowboy.hahack.com\/<\/a><\/p>\n\n\n\n<p>\u5f55\u5236\u591a\u6b21\u53ef\u4ee5\u63d0\u4ea4\u751f\u6210\u81ea\u5df1\u7684\u6a21\u578b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73af\u5883\u914d\u7f6e Mac \u786e\u4fdd\u5f55\u97f3\u53ef\u7528 \u514b\u9686\u4ee3\u7801 \u76ee\u5f55\u4e0b\u7684&nbsp;snowboydecoder.py&nbsp;\u6587 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1388","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/1388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1388"}],"version-history":[{"count":7,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/1388\/revisions"}],"predecessor-version":[{"id":1396,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/posts\/1388\/revisions\/1396"}],"wp:attachment":[{"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/usei.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}