{"id":1987,"date":"2017-12-06T09:00:52","date_gmt":"2017-12-06T00:00:52","guid":{"rendered":"http:\/\/www.mizutan.com\/wordpress\/?p=1987"},"modified":"2025-02-20T16:03:10","modified_gmt":"2025-02-20T07:03:10","slug":"post-1987","status":"publish","type":"post","link":"https:\/\/www.mizutan.com\/wordpress\/?p=1987","title":{"rendered":"Julius\u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8\u756a\u5916\u7de8\uff01\u97f3\u58f0\u3067\u30ed\u30dc\u30c3\u30c8\u64cd\u4f5c\u6e96\u5099\u3067\u969c\u5bb3\u7d9a\u51fa"},"content":{"rendered":"\n<p>60\u723a\u306f\u3001\u524d\u56de\u306e\u8a18\u4e8b\uff08<a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1895\" target=\"_blank\" rel=\"noreferrer noopener\">Julius \u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8 part4<\/a>\uff09\u3067\u3001\u97f3\u58f0\u306b\u3088\u308b\u64cd\u4f5c\u306e\u305f\u3081\u306e\u6e96\u5099\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u307e\u30a2\u4f55\u3068\u304b\u306a\u308b\u3060\u308d\u3046\u3068\u306e\u611f\u89e6\u3092\u7d4c\u3066\u3001\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u306e\u97f3\u58f0\u64cd\u4f5c\u306b\u53d6\u308a\u639b\u304b\u308a\u307e\u3057\u305f\u3002<br><br>\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u306f\u3001\u7a3c\u52d5\u8a2d\u5b9a\u306e\u7d42\u308f\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306eRaspberrypi3\u306b\u3001<strong>\u97f3\u58f0\u64cd\u4f5c\u306e\u305f\u3081\u306eJulius\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30ed\u30dc\u30c3\u30c8\u64cd\u4f5c\u7528\u306e\u8f9e\u66f8\u3092\u4f5c\u6210\u3059\u308c\u3070\u826f\u3044<\/strong>\u308f\u3051\u3067\u3059\u3002<br><br>\u305d\u3057\u3066\u3001<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fe0000\" class=\"has-inline-color\">\u30ed\u30dc\u30c3\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308c\u3070\u3001\u97f3\u58f0\u64cd\u4f5c\u306e\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u304c\u5b8c\u6210<\/mark><\/strong>\u3057\u307e\u3059\u3002<br><br>\u307e\u305a\u306f\u3001Julius\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u4eca\u56de\u306f\u3001part4\u307e\u3067\u4f7f\u7528\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u306a\u304f\u3001<span data-color=\"#ffff00\" style=\"background: linear-gradient(transparent 60%,rgba(255, 255, 0, 0.7) 0);\" class=\"vk_highlighter\">\u6700\u65b0\u7248\uff084.4.2\uff09\u306eJulius\u306b\u6311\u6226\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u304c\u60b2\u5287\u306e\u5e55\u958b\u3051\u3060\u3063\u305f\u3068\u306f\u3001\u4eba\u9593\u305f\u308b60\u723a\u306b\u306f\u601d\u3044\u5f53\u305f\u308b\u3053\u3068\u3082\u7121\u304b\u3063\u305f<\/span>\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u30a4\u30f3\u30c8\u30ed -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"1208333098\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u30a4\u30e1\u30fc\u30b8\u30ab\u30fc\u30c9\u6b7b\u3059<\/h2>\n\n\n\n<p>Julius 4.4.2 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u4e0b\u8a18\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspbian:~ $ wget https:\/\/ja.osdn.net\/projects\/julius\/downloads\/66547\/julius-4.4.2.tar.gz\npi@raspbian:~ $ tar xvzf julius-4.4.2.tar.gz\npi@raspbian:~ $ cd julius-4.4.2\/\npi@raspbian:~\/julius-4.4.2 $ .\/configure\npi@raspbian:~\/julius-4.4.2 $ make\npi@raspbian:~\/julius-4.4.2 $ sudo make install\npi@raspbian:~\/julius-4.4.2 $ julius -version\nJuliusLib rev.4.4.2 (fast)<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u30c7\u30a3\u30af\u30c6\u30fc\u30b7\u30e7\u30f3\u30ad\u30c3\u30c8\u3068\u6587\u6cd5\u8a8d\u8b58\u30ad\u30c3\u30c8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3082\u554f\u984c\u306a\u304f\u5b9f\u65bd\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspbian:~ $ wget https:\/\/osdn.net\/projects\/julius\/downloads\/66544\/dictation-kit-v4.4.zip\npi@raspbian:~ $ wget https:\/\/osdn.net\/projects\/julius\/downloads\/51159\/grammar-kit-v4.1.tar.gz\n\npi@raspbian:~ $ mkdir \/home\/pi\/julius-kits\npi@raspbian:~ $ cd \/home\/pi\/julius-kits\n\npi@raspbian:~ $ unzip \/home\/pi\/dictation-kit-v4.4.zip\npi@raspbian:~ $ tar xvzf \/home\/pi\/grammar-kit-v4.1.tar.gz<\/code><\/pre><\/div>\n\n\n\n<p>\u6b21\u306b\u3001USB\u30de\u30a4\u30af\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u512a\u5148\u9806\u4f4d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u512a\u5148\u9806\u4f4d\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b USB\u30de\u30a4\u30af\u306e\u512a\u5148\u5ea6\u304c\u4f4e\u3044\u306e\u3067\u3001\u9806\u4f4d\u3092\u5909\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspbian:~ $ sudo vi \/proc\/asound\/modules\n0 snd_bcm2835\n1 snd_usb_audio?<\/code><\/pre><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspbian:~ $ sudo vi \/etc\/modprobe.d\/alsa-base.conf\noptions snd slots=snd_usb_audio,snd_bcm2835\noptions snd_usb_audio index=0\noptions snd_bcm2835 index=1<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u3067\u3001reboot\u3057\u305f\u308f\u3051\u306a\u3093\u3067\u3059\u304c\u3001Raspberrypi\u304c\u7acb\u3061\u4e0a\u304c\u3089\u306a\u304f\u306a\u3063\u3061\u3083\u3044\u307e\u3057\u305f\u3002<br><strong>\u96fb\u6e90\u304c\u5165\u3063\u3066\u3082\u3001\u3046\u3093\u3068\u3082\u3059\u3093\u3068\u3082\u8a00\u308f\u306a\u3044\u306e\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001microSD\u306e\u30a4\u30e1\u30fc\u30b8\u3092\uff30\uff23\u3067\u66f8\u304d\u51fa\u3057\u3066\u3001\u305d\u306e\u5185\u5bb9\u3092microSD\u306b\u4e0a\u66f8\u304d\u3057\u3066\u8d77\u52d5\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u30c0\u30e1\u3067\u3059\u3002\u7acb\u3061\u4e0a\u304c\u308d\u3046\u3068\u306f\u3057\u307e\u3059\u304c\u3001\u305d\u3053\u307e\u3067\u30fb\u30fb\u3002\uff2f\uff33\u304c\u8d77\u52d5\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u65b0\u3057\u3044microSD\u306b\u5148\u307b\u3069\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3093\u3067\u7acb\u3061\u4e0a\u3052\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u5168\u304f\u540c\u3058\u72b6\u614b\u3067\u3059\u3002<br><br>\u5225\u306e RaspberryPi \u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u3053\u3061\u3089\u3082\u540c\u3058\u72b6\u614b\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-pale-pink-background-color has-background\"><strong>\u3069\u3046\u3084\u3089\u3001\u30a4\u30e1\u30fc\u30b8\u304c\u6b7b\u3093\u3067\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\uff08\u6d99\uff09\u3002\u30e9\u30ba\u30d1\u30a4\u306e\uff2f\uff33\u3092\u5bb9\u308c\u76f4\u3057\u3066\u518d\u5b9f\u884c\u3057\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/strong><\/p>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8169621401\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u74b0\u5883\u518d\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u7fcc\u65e5\u3001\u6c17\u3092\u53d6\u308a\u76f4\u3057\u3066\u3001RaspberryPi\u306e\uff2f\uff33\u3092\u5165\u308c\u76f4\u3057\u307e\u3057\u305f\u3002update\u3001upgrade\uff08\u3082\u306e\u3059\u3054\u3044\u6642\u9593\uff1a\u534a\u65e5\u4ee5\u4e0a\u304c\u304b\u304b\u308a\u307e\u3057\u305f\uff09\u3092\u884c\u3063\u3066\u3001\u3084\u3063\u3068\u518d\u958b\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30de\u30a4\u30af\u306e\u5165\u529b<\/h3>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30de\u30a4\u30af\u306e\u5165\u529b\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ lsusb\nBus 001 Device 010: ID 056e:700d Elecom Co., Ltd\nBus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512\/9514 Fast Ethernet Adapter\nBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u521d\u304b\u3089\u3001\u5909\u306a\u30a8\u30e9\u30fc\uff01\u3000usb_audio\u304c\u306a\u3044\uff1f\u306a\u3093\u3067\uff1f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cat \/proc\/asound\/modules\n 1 snd_bcm2835<\/code><\/pre><\/div>\n\n\n\n<p>USB\u30de\u30a4\u30af\u3092\u5225\uff35\uff33\uff22\u53e3\u306b\u5909\u3048\u307e\u3057\u305f\u3002\u3059\u308b\u3068\u3001\u5fa9\u6d3b!?\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cat \/proc\/asound\/modules\n 1 snd_bcm2835\n 2 snd_usb_audio<\/code><\/pre><\/div>\n\n\n\n<p>USB\u30b5\u30a6\u30f3\u30c9\u30ab\u30fc\u30c9\u306e\u4f4d\u7f6e\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ arecord -l\n**** \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c7\u30d0\u30a4\u30b9 CAPTURE \u306e\u30ea\u30b9\u30c8 ****\n\u30ab\u30fc\u30c9 2: series [UCAM-DLN130T series], \u30c7\u30d0\u30a4\u30b9 0: USB Audio [USB Audio]\n \u30b5\u30d6\u30c7\u30d0\u30a4\u30b9: 1\/1\n \u30b5\u30d6\u30c7\u30d0\u30a4\u30b9 #0: subdevice #0<\/code><\/pre><\/div>\n\n\n\n<p>USB\u30de\u30a4\u30af\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u8abf\u6574\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ amixer sset Mic 50 -c 1\namixer: Unable to find simple control &#39;Mic&#39;,0<\/code><\/pre><\/div>\n\n\n\n<p>\u30a8\u30e9\u30fc\u3067\u3059\u306d\u3002\u30de\u30a4\u30af\u306e\u30ab\u30fc\u30c9\u756a\u53f7\u306f2\u3067\u3057\u305f\u3002\u3046\u307e\u304f\u3044\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ amixer sset Mic 50 -c 2\nSimple mixer control &#39;Mic&#39;,0\n Capabilities: cvolume cswitch\n Capture channels: Front Left - Front Right\n Limits: Capture 0 - 44\n Front Left: Capture 44 [100%] [16.00dB] [on]\n Front Right: Capture 44 [100%] [16.00dB] [on]<\/code><\/pre><\/div>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"9186857477\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div>\n\n\n\n\n<h3 class=\"wp-block-heading\">julius\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u3055\u3066\u3001\u305d\u308c\u3067\u306f\u3001julius\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\uff08\u305d\u308c\u305e\u308c\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u672c\u30da\u30fc\u30b8\u306e\u59cb\u3081\u306b\u51fa\u3066\u307e\uff0d\uff0d\u3059\uff09\u3002\u305d\u3057\u3066\u3001\u30c7\u30a3\u30af\u30c6\u30fc\u30b7\u30e7\u30f3\u30ad\u30c3\u30c8\u3092\u7d9a\u3051\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br><br>\u5168\u304f\u554f\u984c\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u307e\u3057\u305f\u3002\u9806\u8abf\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">julius\u8d77\u52d5<\/h3>\n\n\n\n<p>\u7d9a\u3044\u3066\u3001\u30c7\u30a3\u30af\u30c6\u30fc\u30b7\u30e7\u30f3\u30ad\u30c3\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066julius\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits $ cd \/home\/pi\/julius-kits\/dictation-kit-v4.4\npi@raspberrypi:~\/julius-kits\/dictation-kit-v4.4 $ julius -C main.jconf -C am-gmm.jconf -demo\n\n----------------------- System Information end -----------------------\n\nNotice for feature extraction (01),\n *************************************************************\n * Cepstral mean normalization for real-time decoding: *\n * NOTICE: The first input may not be recognized, since *\n * no initial mean is available on startup. *\n *************************************************************\n\nStat: adin_oss: device name = \/dev\/dsp (application default)\nError: adin_oss: failed to open \/dev\/dsp\nfailed to begin input stream<\/code><\/pre><\/div>\n\n\n\n<p>\u30a8\u30e9\u30fc\u767a\u751f\uff01\u3084\u3063\u3071\u308a\u3001\uff11\u56de\u3067\u6210\u529f\u3057\u306a\u3044\u3067\u3059\u306d\u3002\u3053\u306e\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3063\u3066reboot\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u306d\u3002\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ sudo sh -c &quot;echo snd-pcm-oss &gt;&gt; \/etc\/modules&quot;<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3053\u3067\u3001\u30b5\u30a6\u30f3\u30c9\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u3042\u308c\u3001usb\u30b5\u30a6\u30f3\u30c9\u304c\u7121\u3044\u3002\u307e\u305f\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cat \/proc\/asound\/modules\n 1 snd_bcm2835<\/code><\/pre><\/div>\n\n\n\n<p>\u4ed5\u65b9\u306a\u3044\u306e\u3067\u3001USB\u3092\u53e3\u3092\u5dee\u66ff\u3048\u3066\u898b\u3066\u307f\u308b\u3068\u767b\u5834\u3057\u307e\u3057\u305f\u3002\u4f55\u306a\u3093\u3060\u308d\u3001\u4e00\u4f53\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cat \/proc\/asound\/modules\n 0 snd_usb_audio\n 1 snd_bcm2835<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cd \/home\/pi\/julius-kits\/dictation-kit-v4.4\npi@raspberrypi:~\/julius-kits\/dictation-kit-v4.4 $ julius -C main.jconf -C am-gmm.jconf\n\u30fb\n\u30fb\nWarning: strip: sample 0-1023 is invalid, stripped\nWarning: strip: sample 0-577 has zero value, stripped<\/code><\/pre><\/div>\n\n\n\n<p>strip\u306e\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u767a\u751f\u3001\u3053\u308c\u3063\u3066\u3001<a rel=\"noreferrer noopener\" href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1819\" target=\"_blank\">part1<\/a> \u3067 julius \u5165\u308c\u305f\u3068\u304d\u3001\u767a\u751f\u3057\u305f\u5974\u3067\u3059\u306d\u3002<br>\u30aa\u30d7\u30b7\u30e7\u30f3 -nostrip \u3092\u8ffd\u52a0\u3057\u3066\u518d\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;&lt;&lt; please speak &gt;&gt;&gt;WARNING: adin_thread_process: too long input (&gt; 320000 samples), segmented now\nWarning: input buffer overflow: some input may be dropped, so disgard the input\nSTAT: skip CMN parameter update since last input was invalid<\/code><\/pre><\/div>\n\n\n\n<p>part1\u306b\u623b\u3063\u3066\u3001\u3088\u30fc\u304f\u898b\u3066\u307f\u308b\u3068\u3001-lv \u304c\u5fc5\u8981\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits\/dictation-kit-v4.4 $ julius -input mic -lv 10000 -C\nmain.jconf -C am-gmm.jconf -nostrip\n### read waveform input\nStat: adin_oss: device name = \/dev\/dsp (application default)\nStat: adin_oss: sampling rate = 16000Hz\nStat: adin_oss: going to set latency to 50 msec\nStat: adin_oss: audio I\/O Latency = 32 msec (fragment size = 512 samples)\nSTAT: AD-in thread created\npass1_best: \u3053\u3093\u306b\u3061\u306f \u3002\npass1_best_wordseq: &lt;s&gt; \u3053\u3093\u306b\u3061\u306f+\u611f\u52d5\u8a5e &lt;\/s&gt;\npass1_best_phonemeseq: silB | k o N n i ch i w a | silE\npass1_best_score: -3358.766602\n### Recognition: 2nd pass (RL heuristic best-first)\nSTAT: 00 _default: 23851 generated, 2254 pushed, 299 nodes popped in 140\nsentence1: \u307b\u3093\u3068 \u3060 \u3088 \u3002\nwseq1: &lt;s&gt; \u307b\u3093\u3068+\u540d\u8a5e \u3060+\u52a9\u52d5\u8a5e \u3088+\u52a9\u8a5e &lt;\/s&gt;\nphseq1: silB | h o N t o | d a | y o | silE\ncmscore1: 0.669 0.074 0.038 0.004 1.000\nscore1: -3379.684326<\/code><\/pre><\/div>\n\n\n\n<p>\u4f55\u3068\u304b\u52d5\u304d\u307e\u3057\u305f\u3002\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3088\u308a\u3001\u306f\u308b\u304b\u306b\u8a8d\u8b58\u7387\u304c\u3088\u308d\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f9e\u66f8\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>\u300cjulius-kits\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u8f9e\u66f8\u30d5\u30a1\u30a4\u30eb\u300choukou.yomi\u300d\u3092\u4f5c\u6210\u3057\u3066\u3001\u97f3\u58f0\u30b3\u30de\u30f3\u30c9\u7528\u306e\u65b9\u5411\u3092\u793a\u3059\u30ef\u30fc\u30c9\u3092\u767b\u9332\u3057\u307e\u3059\u3002\u8a18\u4e8b\u306b\u3042\u308a\u307e\u3059\u3088\u3046\u306b\u3001\u300c\u307e\u3048\u3078\u300d\u3068\u300c\u30de\u30a8\u30a8\u300d\u306e\u9593\u306f\u30bf\u30d6\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ cd \/home\/pi\/julius-kits\npi@raspberrypi:~\/julius-kits $ sudo vi houkou.yomi\npi@raspberrypi:~\/julius-kits $ cat houkou.yomi\n\u307e\u3048\u3078 \u30de\u30a8\u30a8\n\u3070\u3063\u304f \u30d0\u30c3\u30af\n\u3046\u3057\u308d\u3078 \u30a6\u30b7\u30ed\u30a8\n\u307f\u304e\u3078 \u30df\u30ae\u30a8\n\u3072\u3060\u308a\u3078 \u30d2\u30c0\u30ea\u30a8\n\u3059\u3068\u3063\u3077 \u30b9\u30c8\u30c3\u30d7\n\u3059\u305f\u3093\u3070\u3044 \u30b9\u30bf\u30f3\u30d0\u30a4\n\u3070\u308b\u3059 \u30d0\u30eb\u30b9<\/code><\/pre><\/div>\n\n\n\n<p>\u30e9\u30d4\u30e5\u30bf\u6ec5\u3073\u306e\u546a\u6587\u3092\u3001\u6027\u61f2\u308a\u3082\u7121\u304f\u3001\u5165\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u97f3\u58f0\u30b3\u30de\u30f3\u30c9\u7528\u306e\u5358\u8a9e(houkou.yomi)\u3092\u767b\u9332\u3057\u305f\u306e\u3067\u3001julius\u304c\u8a8d\u8b58\u53ef\u80fd\u306a\u5358\u8a9e\u8f9e\u66f8\u30d5\u30a1\u30a4\u30eb(houkou.dic)\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits $ iconv -f utf8 -t eucjp houkou.yomi | \/home\/pi\/julius-kits\/grammar-kit-v4.1\/bin\/yomi2voca.pl &gt; houkou.dic\n\nius-kits\/grammar-kit-v4.1\/bin\/yomi2voca.pl &gt; houkou.dic\nError: (they were also printed to stdout)\nline 1: \u307e\u3048\u3078 \u30de\u30a8\u30a8\nline 2: \u3070a\u304f \u30d0a\u30af\nline 3: \u3046\u3057\u308d\u3078 \u30a6\u30b7\u30ed\u30a8\nline 4: \u307f\u304e\u3078 \u30df\u30ae\u30a8\nline 5: \u3072$\u308a\u3078 \u30d2%?\n\u30ecine 6: \u3059?a\u3077 \u30b9?a\u30d7\nline 7: \u3059\u305f\u3093\u3070\u3044 \u30b9\u30bf\u30f3\u30d0\u30a4\nline 8: \u3070? \u3045\u4e31?pi@raspberrypi:~\/julius-kits $ ls\ndictation-kit-v4.4 grammar-kit-v4.1 houkou.dic houkou.yomi<\/code><\/pre><\/div>\n\n\n\n<p>\u3046\u307e\u304f\u884c\u3063\u305f\u3088\u3046\u3067\u3059\u3002<br>\u6b21\u306b\u3001\u5909\u63db\u3057\u305f\u8f9e\u66f8\u3092\u4f7f\u3046\u305f\u3081\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits $ sudo vi houkou.jconf\npi@raspberrypi:~\/julius-kits $ cat houkou.jconf\n -w base_dict.dic\n -input mic\n -charconv euc-jp utf8\n -h model\/phone_m\/jnas-tri-3k16-gid.binhmm\n -hlist model\/phone_m\/logicalTri\n -output 1<\/code><\/pre><\/div>\n\n\n\n<p>\u3055\u3066\u3001\u5404\u5358\u8a9e\u3092\u8a8d\u8b58\u3059\u308b\u304b\u3002<\/p>\n\n\n\n<p>\u3068\u3053\u308d\u304c\u3001\u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u2460base_dict.dic\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u8a00\u308f\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u2461ERROR: m_chkparam: cannot access model\/phone_m\/jnas-tri-3k16-gid.binhmm\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u2460\u306f\u3001\u4e0a\u8a18houkou.conf\u3067\u306e\u5358\u7d14\u306a\u30df\u30b9\u3067\u3059\u3002base_dict.dic\u3092\u4eca\u56de\u4f5c\u6210\u3057\u305fhoukou.dic\u306b\u305b\u306d\u3070\u306a\u308a\u307e\u305b\u3093\u3002<br>\u2461\u3082\u3001\u6307\u5b9a\u306e\u30df\u30b9\u3067\u3059\u3002model\/phone_m\u306b\u306f\u3001jnas-tri-3k16-gid.binhmm\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u8abf\u3079\u305f\u3068\u3053\u308d\u300160\u723a\u306e\u74b0\u5883\u3067\u306f\u3001\/home\/pi\/julius-kits\/dictation-kit-v4.4\/model\/phone_m\/\u306b\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u4e0a\u8a18\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4fee\u6b63\u5f8c\u306e houkou.jconf \u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002\u3082\u3046\u3072\u3068\u3064\u3001houkou.jconf\u306f\u3001~\/julius-kits\/grammar-kit-v4.1\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u3068\u3001-h\u306b\u6307\u5b9a\u3057\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3068\u3001\u3046\u307e\u304f\u3064\u306a\u304c\u3089\u306a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits $ cat houkou.jconf\n -w \/home\/pi\/julius-kits\/houkou.dic\n -input mic\n -charconv euc-jp utf8\n -h model\/phone_m\/jnas-tri-3k16-gid.binhmm\n -hlist model\/phone_m\/logicalTri\n -output 1<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3067\u3001\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits\/grammar-kit-v4.1 $ julius -C houkou.jconf  -lv 10000 -input mic -nostrip\n\nSTAT: reading [\/home\/pi\/julius-kits\/houkou.dic]...\nStat: init_wordlist: reading in word list\nError: voca_load_wordlist: line 1: logical phone &quot;\u30de\u30a8\u30a8&quot; not found\nError: voca_load_wordlist: the line content was: \u307e\u3048\u3048 \u30de\u30a8\u30a8\nError: voca_load_wordlist: line 2: logical phone &quot;\u30d0a\u30af&quot; not found\nError: voca_load_wordlist: the line content was: \u3070a\u304f  \u30d0a\u30af\nError: voca_load_wordlist: line 3: logical phone &quot;\u30a6\u30b7\u30ed\u30a8&quot; not found\nError: voca_load_wordlist: the line content was: \u3046\u3057\u308d\u3048       \u30a6\u30b7\u30ed\u30a8\nError: voca_load_wordlist: line 4: logical phone &quot;\u30df\u30ae\u30a8&quot; not found\nError: voca_load_wordlist: the line content was: \u307f\u304e\u3048 \u30df\u30ae\u30a8\nError: voca_load_wordlist: line 5: logical phone &quot;\u30d2%?\u30a2 not found\nError: voca_load_wordlist: the line content was: \u3072$?   \u3045\u52b5%?\nError: voca_load_wordlist: line 6: logical phone &quot;\u30b9?a\u30d7&quot; not found\nError: voca_load_wordlist: the line content was: \u3059?a\u3077 \u30b9?a\u30d7\nError: voca_load_wordlist: line 7: logical phone &quot;\u30b9\u30bf\u30f3\u30d0\u30a4&quot; not found\nError: voca_load_wordlist: the line content was: \u3059\u305f\u3093\u3070\u3044     \u30b9\u30bf\u30f3\u30d0\u30a4\nError: voca_load_wordlist: line 8: logical phone &quot;\u30d0?\u30a2 not found\nError: voca_load_wordlist: the line content was: \u3070?    \u3045\u4e31?\nError: voca_load_htkdict: begin missing phones\nError: voca_load_htkdict:\nError: voca_load_htkdict: end missing phones\nError: init_wordlist: error in reading \/home\/pi\/julius-kits\/houkou.dic: 8 words failed out of 0 words\nERROR: failed to read word list &quot;\/home\/pi\/julius-kits\/houkou.dic&quot;\nERROR: m_fusion: some error occured in reading grammars\nERROR: Error in loading model<\/code><\/pre><\/div>\n\n\n\n<p>\u99c4\u76ee\u3067\u3059\u306d\u3002\u30a8\u30e9\u30fc\u767a\u751f\u3067\u3059\u3002\u306a\u3093\u304b\u3001\u5358\u8a9e\u8f9e\u66f8\u304c\u304a\u304b\u3057\u3044\u3088\u3046\u306a\u30fb\u30fb\u30fb\u3002\u3044\u308d\u3044\u308d\u3068\u30b0\u30b0\u3063\u3066\u307f\u305f\u308a\u3057\u305f\u3093\u3067\u3059\u3051\u3069\u3001\u3082\u3046\u4e00\u5ea6\u3001\u8a18\u4e8b\u306860\u723a\u306e\u5358\u8a9e\u8868\u3092\u6bd4\u3079\u305f\u3089\u3001<strong>\u4f55\u3068\u30d0\u30ab\u306a\u4e8b<\/strong>\u3092\u3084\u3063\u3066\u3044\u305f\u306e\u3092\u767a\u898b\u3057\u307e\u3057\u305f\u30fc\u30fc\u3002<br><br>\u8f9e\u66f8\u306e\u4e2d\u8eab\u3067\u3059\u304c\u3001\u8a18\u4e8b\u306f\u3001\u30ab\u30bf\u30ab\u30ca\u2192\u3072\u3089\u304c\u306a\u306e\u9806\u306a\u306e\u306b\u300160\u723a\u306f\u3001\u3072\u3089\u304c\u306a\u2192\u30ab\u30bf\u30ab\u30ca\u306e\u9806\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u76f4\u3057\u3066\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3059\u308b\u3068\u3001\u8f9e\u66f8\u4f5c\u6210\u6642\u306b\u3001\u4f55\u306e\u8868\u793a\u3082\u3067\u306a\u3044\u3093\u3067\u3059\u306d\u3002\u3042\u308c\u306f\u3001\u30a8\u30e9\u30fc\u3060\u3063\u305f\u306e\u304b\uff01<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits $ iconv -f utf8 -t eucjp houkou.yomi | \/home\/pi\/julius-kits\/grammar-kit-v4.1\/bin\/yomi2voca.pl &gt; houkou.dic\npi@raspberrypi:~\/julius-kits $<\/code><\/pre><\/div>\n\n\n\n<p>\u3067\u3001\u3053\u308c\u3067\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u3061\u3083\u3093\u3068\u52d5\u304d\u307e\u3057\u305f\u30fc\u30fc\u30fc\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits\/grammar-kit-v4.1 $ julius -C houkou.jconf -lv 10000 -input mic -nostrip\nSTAT: include config: houkou.jconf\nSTAT: jconf successfully finalized\n\u30fb\n\u30fb\n\u30fb\n----------------------- System Information end -----------------------\n\nNotice for feature extraction (01),\n        *************************************************************\n        * Cepstral mean normalization for real-time decoding:       *\n        * NOTICE: The first input may not be recognized, since      *\n        *         no initial mean is available on startup.          *\n        *************************************************************\n\n------\n### read waveform input\nStat: adin_oss: device name = \/dev\/dsp (application default)\nStat: adin_oss: sampling rate = 16000Hz\nStat: adin_oss: going to set latency to 50 msec\nStat: adin_oss: audio I\/O Latency = 32 msec (fragment size = 512 samples)\nSTAT: AD-in thread created\n\u30fb\npass1_best: \u30de\u30a8\u30a8\npass1_best_wordseq: \u30de\u30a8\u30a8\npass1_best_phonemeseq: silB m a e e silE\npass1_best_score: -2288.345947\nsentence1: \u30de\u30a8\u30a8\nwseq1: \u30de\u30a8\u30a8\nphseq1: silB m a e e silE\ncmscore1: 0.945\nscore1: -2288.345947\n\npass1_best: \u30a6\u30b7\u30ed\u30a8\npass1_best_wordseq: \u30a6\u30b7\u30ed\u30a8\npass1_best_phonemeseq: silB u sh i r o e silE\npass1_best_score: -2672.608887\nsentence1: \u30a6\u30b7\u30ed\u30a8\nwseq1: \u30a6\u30b7\u30ed\u30a8\nphseq1: silB u sh i r o e silE\ncmscore1: 0.987\nscore1: -2672.608887\n\npass1_best: \u30d2\u30c0\u30ea\u30a8\npass1_best_wordseq: \u30d2\u30c0\u30ea\u30a8\npass1_best_phonemeseq: silB h i d a r i e silE\npass1_best_score: -2388.519287\nsentence1: \u30d2\u30c0\u30ea\u30a8\nwseq1: \u30d2\u30c0\u30ea\u30a8\nphseq1: silB h i d a r i e silE\ncmscore1: 0.954\nscore1: -2388.519287\n\npass1_best: \u30df\u30ae\u30a8\npass1_best_wordseq: \u30df\u30ae\u30a8\npass1_best_phonemeseq: silB m i g i e silE\npass1_best_score: -2522.857910\nsentence1: \u30df\u30ae\u30a8\nwseq1: \u30df\u30ae\u30a8\nphseq1: silB m i g i e silE\ncmscore1: 0.723\nscore1: -2522.857910\n\npass1_best: \u30b9\u30c8\u30c3\u30d7\npass1_best_wordseq: \u30b9\u30c8\u30c3\u30d7\npass1_best_phonemeseq: silB s u t o q p u silE\npass1_best_score: -2687.319336\nsentence1: \u30b9\u30c8\u30c3\u30d7\nwseq1: \u30b9\u30c8\u30c3\u30d7\nphseq1: silB s u t o q p u silE\ncmscore1: 0.992\nscore1: -2687.319336\n\npass1_best: \u30b9\u30bf\u30f3\u30d0\u30a4\npass1_best_wordseq: \u30b9\u30bf\u30f3\u30d0\u30a4\npass1_best_phonemeseq: silB s u t a N b a i silE\npass1_best_score: -2862.957764\nsentence1: \u30b9\u30bf\u30f3\u30d0\u30a4\nwseq1: \u30b9\u30bf\u30f3\u30d0\u30a4\nphseq1: silB s u t a N b a i silE\ncmscore1: 0.619\nscore1: -2862.957764\n\npass1_best: \u30d0\u30eb\u30b9\npass1_best_wordseq: \u30d0\u30eb\u30b9\npass1_best_phonemeseq: silB b a r u s u silE\npass1_best_score: -2101.563477\nsentence1: \u30d0\u30eb\u30b9\nwseq1: \u30d0\u30eb\u30b9\nphseq1: silB b a r u s u silE\ncmscore1: 0.907\nscore1: -2101.563477<\/code><\/pre><\/div>\n\n\n\n<p>\u3064\u307e\u3089\u3093\u30df\u30b9\u3067\u3001\u4f59\u8a08\u306a\u6642\u9593\u3092\u98df\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u308c\u3067\u524d\u306b\u9032\u3081\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e2\u30b8\u30e5\u30fc\u30eb\u30e2\u30fc\u30c9\u3067\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u4eca\u5ea6\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u30e2\u30fc\u30c9\u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~\/julius-kits\/grammar-kit-v4.1 $ julius -C houkou.jconf  -lv 10000 -input mic -nostrip -module\n\u30fb\n\u30fb\nSTAT: [5] prepare for real-time decoding\nSTAT: All init successfully done\n\nStat: server-client: socket ready as server\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/\/  Module mode ready\n\/\/\/  waiting client at 10500\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/code><\/pre><\/div>\n\n\n\n<p>\u3082\u3046\u3072\u3068\u3064\u3001teraterm\u306e\u753b\u9762\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6d41\u3057\u307e\u3059\u3002<br>\u3055\u3066\u3001\u304d\u3061\u3093\u3068\u97f3\u58f0\u8a8d\u8b58\u3057\u3066\u304f\u308c\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pi@raspberrypi:~ $ python print.py<\/code><\/pre><\/div>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u524d\u3048\u3001\u5f8c\u308d\u3048<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>---- replace ----\n***** m a e e *****\n0.994\n---- replace ----\n***** u s i r o e *****\n0.998\n---- replace ----\n***** b a k k u *****\n1.0\n---- replace ----\n***** m i g i e *****\n0.976\n---- replace ----\n***** h i d a r i e *****\n0.466\n---- replace ----\n***** s u t o p p u *****\n0.531\n---- replace ----\n***** s u t a n b a i *****\n0.946\n---- replace ----\n\u30d0\u30eb\u30b9\n0.947\n##### THE END #####<\/code><\/pre><\/div>\n\n\n\n<p>\u306a\u304b\u306a\u304b\u306e\u8a8d\u8b58\u7387\u3067\u3059\u3002<br>\u30d0\u30c3\u30af\u306e\u30b9\u30b3\u30a2\u306a\u305e\u3001100%\u3067\u3059\u3002\u97f3\u58f0\u306e\u8a8d\u8b58\u306f\u591a\u5206\u5927\u4e08\u592b\u3067\u3059\u306d\u3002<br><br>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u63b2\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>#!\/usr\/bin\/python\n# -*- coding: utf-8 -*-\nimport socket\nimport xml.etree.ElementTree as ET\nimport subprocess\nimport sys\nimport re\n\ndef main():\n    host = &#39;localhost&#39;\n    port = 10500\n\n    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n    client.connect((host, port))\n\n    try:\n        data = &#39;&#39;\n        while 1:\n            if &#39;\\n.&#39; in data:\n\n#                print data\n\n                r_data = data.replace(&#39;\\n&#39;, &#39;@@@&#39;)\n                r = re.compile(&quot;(.*)(\/RECOGOUT)(.*)&quot;)\n\n                m = r.match(r_data)\n                if m != None:\n                    a = m.group(1)\n                    data = a.replace(&#39;@@@&#39;, &#39;\\n&#39;) + &#39;\/RECOGOUT&gt;\\n.&#39;\n                    print &#39;---- replace ----&#39;\n#                    print data\n                else:\n                    print &#39;---- None ----&#39;\n#                    print data\n\n                root = ET.fromstring(&#39;\\n&#39; + data[data.find(&#39;&#39;):].replace(&#39;\\n.&#39;, &#39;&#39;))\n                for whypo in root.findall(&#39;.\/SHYPO\/WHYPO&#39;):\n                    command = whypo.get(&#39;WORD&#39;)\n                    score = float(whypo.get(&#39;CM&#39;))\n#                    print command\n                    if command == u&#39;\u30de\u30a8\u30a8&#39;:\n                       print &#39;***** m a e e *****&#39;\n                       print score\n                    elif command == u&#39;\u30a6\u30b7\u30ed\u30a8&#39;:\n                        print &#39;***** u s i r o e *****&#39;\n                        print score\n                    elif command == u&#39;\u30d0\u30c3\u30af&#39;:\n                        print &#39;***** b a k k u *****&#39;\n                        print score\n                    elif command == u&#39;\u30df\u30ae\u30a8&#39;:\n                        print &#39;***** m i g i e *****&#39;\n                        print score\n                    elif command == u&#39;\u30d2\u30c0\u30ea\u30a8&#39;:\n                        print &#39;***** h i d a r i e *****&#39;\n                        print score\n                    elif command == u&#39;\u30b9\u30c8\u30c3\u30d7&#39;:\n                        print &#39;***** s u t o p p u *****&#39;\n                        print score\n                    elif command == u&#39;\u30b9\u30bf\u30f3\u30d0\u30a4&#39;:\n                        print &#39;***** s u t a n b a i *****&#39;\n                        print score\n                # \uff30\uff27\u7d42\u4e86\u3000\u30e9\u30d4\u30e5\u30bf\u6ec5\u3073\u306e\u546a\u6587\u300c\u30d0\u30eb\u30b9\u300d\n                    elif command == u&#39;\u30d0\u30eb\u30b9&#39;:\n                        print command\n                        print score\n                        print &#39;##### THE END #####&#39;\n                        sys.exit()\n                    else:\n                        print &#39;----- e t c ! -----&#39;\n                        print command\n                        print score\n                data = &#39;&#39;\n            else:\n                data = data + client.recv(1024)\n    except KeyboardInterrupt:\n        client.close()\n\nif __name__ == &quot;__main__&quot;:\n    main()<\/code><\/pre><\/div>\n\n\n\n<p>\u203bJulius\u97f3\u58f0\u8a8d\u8b58\u306e\u30b7\u30ea\u30fc\u30ba\u8a18\u4e8b\u3067\u3059\u3002\u4ed6\u306e\u8a18\u4e8b\u3082\u3054\u89a7\u306b\u306a\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1895\" data-type=\"post\" data-id=\"1895\" target=\"_blank\" rel=\"noreferrer noopener\">Julius\u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8part4\uff01\u97f3\u58f0\u306b\u3088\u308b\u30ed\u30dc\u30c3\u30c8\u64cd\u4f5c\u306e\u6e96\u5099\u4f5c\u696d<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1865\" data-type=\"post\" data-id=\"1865\" target=\"_blank\" rel=\"noreferrer noopener\">\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u97f3\u58f0\u51fa\u529b\u3067\u304d\u3066\u3082\u7ba1\u7406\u8005ID\u3067\u5b9f\u884c\u3059\u308b\u3068\u97f3\u304c\u51fa\u306a\u3044\u7406\u7531\u3068\u306f<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1877\" data-type=\"post\" data-id=\"1877\" target=\"_blank\" rel=\"noreferrer noopener\">Julius\u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8part3\uff01\u30d5\u30ea\u30fc\u3067\u3082\u6587\u6cd5\u30d5\u30a1\u30a4\u30eb\u3067\u8a8d\u8b58\u7387\u30a2\u30c3\u30d7<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1842\" data-type=\"post\" data-id=\"1842\" target=\"_blank\" rel=\"noreferrer noopener\">Julius\u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8part2\uff01\u9332\u97f3\u97f3\u58f0\u306e\u8a8d\u8b58\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mizutan.com\/wordpress\/?p=1819\" data-type=\"post\" data-id=\"1819\" target=\"_blank\" rel=\"noreferrer noopener\">Julius \u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8 part1 \u30d5\u30ea\u30fc\u30bd\u30d5\u30c8\u3060\u304c\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0\u3067\u30a8\u30e9\u30fc\u306e\u5d50\uff01<\/a><\/li>\n<\/ul>\n\n\n\n<!-- WP QUADS v. 2.0.98  Shortcode Ad -->\n<div class=\"quads-location quads-ad\" id=\"quads-ad\" style=\"float:none;margin:0px 0 0px 0;text-align:center;\">\n\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1169427325398969\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- www_\u8a18\u4e8b\u4e2d\uff13 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1169427325398969\"\r\n     data-ad-slot=\"8208817721\"\r\n     data-ad-format=\"rectangle\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br><\/div>\n\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u99c6\u52d5<\/h2>\n\n\n\n<p>\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u99c6\u52d5\u7528\u306e\u5168\u3066\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u518d\u3073\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u884c\u3044\u307e\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u81ea\u4f53\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3001\u3055\u307b\u3069\u82e6\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u3002<br><br>\u306f\u305f\u3057\u3066\u3001\u3059\u3093\u306a\u308a\u52d5\u304f\u304b\u3069\u3046\u304b\u3084\u3063\u3066\u307f\u307e\u3059\u3002\u305d\u306e\u524d\u306b\u914d\u7dda\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u3082\u3001\u5927\u3057\u305f\u914d\u7dda\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u66f8\u7c4d\u3092\u898b\u306a\u304c\u3089\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3055\u30a1\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002<br><br>\u3042\u308c\u308c\u3001\u30a8\u30e9\u30fc\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u30fb\n\u30fb\n\u30fb\nFile &quot;bb2-08-02-6legs-pca9685.py&quot;, line 36, in setPCA9685Duty3\n bus.write_i2c_block_data(address_pca9685, channelpos, data)\nIOError: [Errno 121] Remote I\/O error<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u3044\u3064\u306f\u3001\u3044\u3064\u3082\u306e\u5974\uff0d\uff0d<strong>\u96fb\u6e90\u304c\u8db3\u308a\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/strong><br><br>\u3067\u3059\u306e\u3067\u3001\u30e2\u30fc\u30bf\u30fc\u3092\u96fb\u6e90\u3092\u3001<strong>\u5358\uff13\u96fb\u6c60\uff13\u672c\u21d2\uff14\u672c\u306e\u96fb\u6c60\u30d1\u30c3\u30af\u3067\u4ee3\u66ff<\/strong>\u3055\u305b\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u30b9\u30de\u30db\u306e\u5145\u96fb\u7528\u30d0\u30c3\u30c6\u30ea\u306f\u4f7f\u308f\u306a\u3044\u306e\u3067\u3069\u304b\u3057\u307e\u3057\u305f\u3002<br><br>\u3053\u308c\u3067\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u7121\u4e8b\u306b\u7a3c\u52d5\u3057\u307e\u3057\u305f\u3002<br><br>\u3055\u3066\u3001\u6b21\u306f\u300c\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u97f3\u58f0\u64cd\u4f5c\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210\u300d\u306a\u3093\u3067\u3059\u304c\u3001\u3053\u3044\u3064\u304c\u6700\u5f8c\u306e\u96e3\u95a2\u3067\u3059\u3002<br><br>\u3057\u304b\u3057\u3001\u3053\u3053\u8fc4\u6765\u308b\u306e\u306b\u3001\u601d\u3044\u306e\u307b\u304b\u30da\u30fc\u30b8\u3092\u98df\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u306e\u3067\u3001\u3053\u3053\u3067\u5b8c\u4e86\u3068\u3057\u3001\u672c\u984c\u306f\u6b21\u306epart\u3067\u5b9f\u65bd\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading is-style-vk-heading-double_black\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>Julius\u97f3\u58f0\u8a8d\u8b58\u3067\u3001\u97f3\u58f0\u3067\u30ed\u30dc\u30c3\u30c8\u64cd\u4f5c\u3092\u5b9f\u65bd\u3059\u308b\u4e88\u5b9a\u3067\u6e96\u5099\u306b\u5f35\u308a\u307e\u3057\u305f\u3002<br><br>\u3068\u3053\u308d\u304c\u3001\u74b0\u5883\u8a2d\u5b9a\u6642\u306b\u3001\uff2f\uff33\u304c\u6b7b\u306c\u3068\u3044\u3046\u30a2\u30af\u30b7\u30c7\u30f3\u30c8\u304c\u3042\u308a\u3001\u5927\u5909\u306a\u601d\u3044\u3092\u3055\u305b\u3089\u308c\u307e\u3057\u305f\u3002<br><br>\u3081\u3052\u305a\u306b\u6642\u9593\u3092\u304b\u3051\u3066\u74b0\u5883\u8a2d\u5b9a\u3092\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<br><br>\u3057\u304b\u3057\u3001\u6700\u5f8c\u306e\u96e3\u95a2\u3067\u3042\u308b\u300c\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u97f3\u58f0\u64cd\u4f5c\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210\u300d\u3092\u3084\u308b\u6642\u9593\u304c\u5c3d\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u25a0\u601d\u3048\u3070\u3001\u300cJulius\u97f3\u58f0\u8a8d\u8b58\u300d\u306e\u8a18\u4e8b\u3082\u5897\u3048\u3066\u304d\u307e\u3057\u305f<\/p>\n\n\n\n<div class=\"blogcard\"><a href=\"https:\/\/www.mizutan.com\/wordpress\/?cat=344\" data-blogcard=\"1\">Julius\u97f3\u58f0\u8a8d\u8b58<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>60\u723a\u306f\u3001\u524d\u56de\u306e\u8a18\u4e8b\uff08Julius \u97f3\u58f0\u8a8d\u8b58\u30bd\u30d5\u30c8 part4\uff09\u3067\u3001\u97f3\u58f0\u306b\u3088\u308b\u64cd\u4f5c\u306e\u305f\u3081\u306e\u6e96\u5099\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u307e\u30a2\u4f55\u3068\u304b\u306a\u308b\u3060\u308d\u3046\u3068\u306e\u611f\u89e6\u3092\u7d4c\u3066\u3001\uff16\u811a\u30ed\u30dc\u30c3\u30c8\u306e\u97f3\u58f0\u64cd\u4f5c\u306b\u53d6\u308a\u639b\u304b\u308a\u307e\u3057\u305f\u3002 \uff16\u811a\u30ed\u30dc\u30c3\u30c8\u306f\u3001\u7a3c\u52d5\u8a2d\u5b9a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2223,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[344],"tags":[],"class_list":["post-1987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-julius"],"_links":{"self":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1987"}],"version-history":[{"count":31,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1987\/revisions"}],"predecessor-version":[{"id":28903,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1987\/revisions\/28903"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/2223"}],"wp:attachment":[{"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mizutan.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}