{"id":420,"date":"2019-01-29T13:25:24","date_gmt":"2019-01-29T05:25:24","guid":{"rendered":"https:\/\/www.sumju.net\/?p=420"},"modified":"2019-01-29T13:25:24","modified_gmt":"2019-01-29T05:25:24","slug":"%e9%85%8d%e7%bd%ae%e6%a8%b9%e8%8e%93%e6%b4%be-linux%e9%bb%98%e8%aa%8d%e8%81%b2%e5%8d%a1%e8%a8%ad%e5%82%99","status":"publish","type":"post","link":"https:\/\/sumju.net\/?p=420","title":{"rendered":"\u914d\u7f6e\u6a39\u8393\u6d3e\/Linux\u9ed8\u8a8d\u8072\u5361\u8a2d\u5099"},"content":{"rendered":"<h2 id=\"\u8a2d\u7f6e\u9ed8\u8a8d\u8072\u5361\u70bausb\u8072\u5361\" style=\"margin:0px0px0.3em; color:rgb(46,46,46); line-height:1.15em; font-feature-settings:\" dlig\",\"liga\",\"lnum\",\"kern\"; text-rendering:geometricprecision; letter-spacing:0px; font-size:2.4rem; font-family:sans-serif; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:rgb(255,255,255); text-decoration-style:initial; text-decoration-color:initial; text-align:left;\">1.\u8a2d\u7f6e\u9ed8\u8a8d\u8072\u5361\u70baUSB\u8072\u5361<\/h2>\n<pre style=\"overflow:auto; font-size:0.9em; font-family:Inconsolata,monospace,sans-serif; border:1pxsolidrgb(227,237,243); background:rgb(247,250,251); box-sizing:border-box; margin:0px0px1.75em; padding:10px; width:328px; border-radius:3px; white-space:pre; color:rgb(58,65,69); font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:0.1px; orphans:2text-indent:0px; text-transform:none; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; text-decoration-style:initial; text-decoration-color:initial; text-align:left;\"><code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u5728$HOME\u4e0b\u65b0\u5efa.asoundrc<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$cd $HOME<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$nano .asoundrc<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u8f38\u5165\u4ee5\u4e0b\u5167\u5bb9<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">defaults.ctl.card 1<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">defaults.pcm.card 1<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6700\u5f8c\u76841\u662fUSB\u8072\u5361\u7684\u7de8\u865f\uff0c\u53ef\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$aplay -l<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6216<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$cat \/proc\/asound\/cards<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u7136\u5f8c\u91cd\u555f\u4e00\u4e0balsa\u5c31\u628a1\u865f\u8072\u5361(usb\u8072\u5361)\u8a2d\u7f6e\u6210\u9ed8\u8a8d\u8072\u5361\u4e86\u3002<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6e2c\u8a66\u9304\u97f3<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$arecord -d 10 test.wav<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6e2c\u8a66\u64ad\u97f3<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$aplay test.wav<\/code><\/pre>\n<h2 id=\"\u64ad\u97f3\u548c\u9304\u97f3\u70ba\u4e0d\u540c\u8072\u5361\u6642\u53ef\u4ee5\u53c3\u8003\u4ee5\u4e0b\u914d\u7f6e\u4fee\u6539.asoundrc\" style=\"margin:0px0px0.3em; color:rgb(46,46,46); line-height:1.15em; font-feature-settings:\" dlig\",\"liga\",\"lnum\",\"kern\"; text-rendering:geometricprecision; letter-spacing:0px; font-size:2.4rem; font-family:sans-serif; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:rgb(255,255,255); text-decoration-style:initial; text-decoration-color:initial; text-align:left;\">2.\u64ad\u97f3\u548c\u9304\u97f3\u70ba\u4e0d\u540c\u8072\u5361\u6642\uff0c\u53ef\u4ee5\u53c3\u8003\u4ee5\u4e0b\u914d\u7f6e\uff0c\u4fee\u6539~\/.asoundrc<\/h2>\n<pre style=\"overflow:auto; font-size:0.9em; font-family:Inconsolata,monospace,sans-serif; border:1pxsolidrgb(227,237,243); background:rgb(247,250,251); box-sizing:border-box; margin:0px0px1.75em; padding:10px; width:328px; border-radius:3px; white-space:pre; color:rgb(58,65,69); font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:0.1px; orphans:2text-indent:0px; text-transform:none; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; text-decoration-style:initial; text-decoration-color:initial; text-align:left;\"><code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">pcm.!default {<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">    type asym<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">    playback.pcm {<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">        type plug<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">        slave.pcm \"hw:0,0\"<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">    }<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">    capture.pcm {<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">        type plug<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">        slave.pcm \"hw:1,0\"<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">}<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u5176\u4e2d\uff0chw:1,0\u8868\u793acard 1 device 0<\/code><\/pre>\n<h2 id=\"\u8abf\u7bc0\u8072\u5361\u97f3\u91cf\" style=\"margin:0px0px0.3em; color:rgb(46,46,46); line-height:1.15em; font-feature-settings:\" dlig\",\"liga\",\"lnum\",\"kern\"; text-rendering:geometricprecision; letter-spacing:0px; font-size:2.4rem; font-family:sans-serif; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:rgb(255,255,255); text-decoration-style:initial; text-decoration-color:initial; text-align:left;\">3.\u8abf\u7bc0\u8072\u5361\u97f3\u91cf<\/h2>\n<pre style=\"overflow:auto; font-size:0.9em; font-family:Inconsolata,monospace,sans-serif; border:1pxsolidrgb(227,237,243); background:rgb(247,250,251); box-sizing:border-box; margin:0px0px1.75em; padding:10px; width:328px; border-radius:3px; white-space:pre; color:rgb(58,65,69); font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:0.1px; orphans:2text-indent:0px; text-transform:none; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; text-decoration-style:initial; text-decoration-color:initial; text-align:left;\"><code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6253\u958b\u7d42\u7aef\uff0c\u8f38\u5165<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">$alsamixer<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u5373\u53ef\u8abf\u7bc0\u97f3\u91cf<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u6309 f6 \u6703\u51fa\u73fe\u8072\u5361\u5217\u8868<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">\u4e00\u822c\u4f86\u8aac\uff0cusb \u8072\u5361\u7e3d\u662f\u7b2c\u4e8c\u4f4d\u7684\uff0c\u8072\u5361\u7de8\u865f\u662f1(\u9ed8\u8a8d\u8072\u5361\u662f0)<\/code><\/pre>\n<h2 id=\"\u6e2c\u8a66\u6307\u5b9a\u8072\u5361\" style=\"margin:0px0px0.3em; color:rgb(46,46,46); line-height:1.15em; font-feature-settings:\" dlig\",\"liga\",\"lnum\",\"kern\"; text-rendering:geometricprecision; letter-spacing:0px; font-size:2.4rem; font-family:sans-serif; font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; background-color:rgb(255,255,255); text-decoration-style:initial; text-decoration-color:initial; text-align:left;\">4.\u6e2c\u8a66\u6307\u5b9a\u8072\u5361<\/h2>\n<pre style=\"overflow:auto; font-size:0.9em; font-family:Inconsolata,monospace,sans-serif; border:1pxsolidrgb(227,237,243); background:rgb(247,250,251); box-sizing:border-box; margin:0px0px1.75em; padding:10px; width:328px; border-radius:3px; white-space:pre; color:rgb(58,65,69); font-style:normal; font-variant-ligatures:normal; font-variant-caps:normal; font-weight:400; letter-spacing:0.1px; orphans:2text-indent:0px; text-transform:none; widows:2; word-spacing:0px; -webkit-text-stroke-width:0px; text-decoration-style:initial; text-decoration-color:initial; text-align:left;\"><code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">arecord -D \"plughw:5,0\" -d 3 temp.wav<\/code>\n<code style=\"font-size: inherit; font-family: Inconsolata, monospace, sans-serif; padding: 0px; border-radius: 2px; white-space: pre-wrap; font-feature-settings: \" liga\" 0; border: none; background: 0px 0px;\">aplay -D \"plughw:1,0\" temp.wav<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u8a2d\u7f6e\u9ed8\u8a8d\u8072\u5361\u70baUSB\u8072\u5361 \u5728$HOME\u4e0b\u65b0\u5efa.asoundrc $cd $HOME $nano &hellip; <a href=\"https:\/\/sumju.net\/?p=420\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u914d\u7f6e\u6a39\u8393\u6d3e\/Linux\u9ed8\u8a8d\u8072\u5361\u8a2d\u5099<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14,16],"tags":[],"class_list":{"0":"post-420","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-linux","7":"category-raspberry-pi","8":"h-entry","10":"h-as-article"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=420"}],"version-history":[{"count":0,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/420\/revisions"}],"wp:attachment":[{"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}