{"id":5661,"date":"2017-12-18T13:40:37","date_gmt":"2017-12-18T04:40:37","guid":{"rendered":"https:\/\/www.jaswill.co.jp\/blog\/?p=5661"},"modified":"2017-12-18T13:40:37","modified_gmt":"2017-12-18T04:40:37","slug":"shairport-sync","status":"publish","type":"post","link":"https:\/\/www.jaswill.co.jp\/blog\/2017\/12\/18\/shairport-sync\/","title":{"rendered":"Shairport-sync"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001<\/p>\n<p>&nbsp;<\/p>\n<p>1\u9031\u9593\u524d\u306b\u306f\u306a\u308a\u307e\u3059\u304c\u3001Amazon\u306eCyber Monday\u3001\u3001\u3001\u796d\u308a\u304c\u7d42\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u7686\u3055\u3093\u3001\u4f55\u304b\u8cb7\u3044\u307e\u3057\u305f\u304b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u79c1\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30bf\u304b\u5927\u578b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u304c\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3001<\/p>\n<p>\u30a6\u30a9\u30c3\u30c1\u30ea\u30b9\u30c8\u306b\u5165\u308c\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>\u7d50\u5c40\u8cb7\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u306e\u6a5f\u4f1a\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3042\u307e\u308a\u826f\u3044\u51fa\u4f1a\u3044\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3002\u3002\u6b8b\u5ff5\u3001\u3001\u3001\u30e4\u30de\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4f1a\u793e\u306b\u4f59\u3063\u3066\u3044\u305fRaspberryPi\u304c\u6700\u65b0\u30e2\u30c7\u30eb\u3067\u3057\u305f\u306e\u3067\u3001<\/p>\n<p>\u3053\u305d\uff5e\uff5e\uff5e\uff5e\u3063\u3068\u3001\u81ea\u5b85\u306b\u6301\u3061\u5e30\u308a\u3001\u904a\u3073\u307e\u3057\u305f\u3002\uff08\u4f1a\u793e\u304b\u3089\u8cb0\u3044\u307e\u3057\u305f\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u65e7\u30bf\u30a4\u30d7\u306eRaspberryPi\u3067\u306f\u3001Wifi\u3084Bluetooth\u3092\u5225\u9014\u7528\u610f\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u305a\u3001<\/p>\n<p>\u82e5\u5e72\u3001\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u65b0\u30bf\u30a4\u30d7\u3067\u306f\u3001\u5168\u3066\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3046\u3048\u3001\u30b9\u30da\u30c3\u30af\u3082\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u524d\u306eRaspberryPi\u3067\u5236\u4f5c\u3057\u305f\u3001\u300c\u30a2\u30ca\u30ed\u30b0\u30b9\u30c6\u30ec\u30aa\u306eAirPlay\u5316\u300d\u3092<\/p>\n<p>\u65b0\u30bf\u30a4\u30d7\u306eRaspberryPi\u3092\u4f7f\u3063\u3066\u3001\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>\u624b\u9806\u3067\u3059\u304c\u3001\u3001\u3001\u3001<\/p>\n<p><a href=\"https:\/\/github.com\/mikebrady\/shairport-sync\/blob\/master\/README.md\">https:\/\/github.com\/mikebrady\/shairport-sync\/blob\/master\/README.md<\/a>\u3000\u3053\u306e\u901a\u308a\u306b\u3084\u308c\u3070\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u4e0b\u3001\u30cf\u30de\u308a\u30dd\u30a4\u30f3\u30c8\u3060\u3051<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">\uff11\uff09\u307e\u305a\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u66f4\u65b0\u3092\u3059\u3079\u3057<\/span><\/p>\n<p>\u4f5c\u696d\u524d\u306b\u3001<\/p>\n<p>sudo apt-get update\u3000\u30d1\u30c3\u30b1\u30fc\u30b8DB\u66f4\u65b0<\/p>\n<p>sudo apt-get upgrade\u3000\u8272\u3093\u306a\u3082\u306e\u66f4\u65b0<\/p>\n<p>\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u5468\u308a\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u308c\u3057\u306a\u3044\u3068\u3001shairport-sync\u3067\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3053\u3051\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306f\u3053\u308c\u30671\u65e5\u7121\u99c4\u306b\u3057\u307e\u3057\u305f\u3001\u3001\u3001omg<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">\uff12\uff09\u6700\u521d\u304b\u3089root\u3067\u4f5c\u696d\u3057\u3061\u3083\u3046<\/span><\/p>\n<p>\u3044\u3061\u3044\u3061\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5148\u982d\u306b\u300csudo\u300d\u4ed8\u3051\u308b\u306e\u9762\u5012\u3067\u3059\u3002<\/p>\n<p>\u3044\u3063\u305d\u306e\u3053\u3068root\u3067\u3084\u3063\u3061\u3083\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u3082\u3001\u521d\u671f\u72b6\u614b\u3067\u306froot\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001<\/p>\n<p>sudo passwd root<\/p>\n<p>\u306e\u30b3\u30de\u30f3\u30c9\u3067root\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u4e0a\u3067\u3001su\u3067root\u306b\u5909\u8eab\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">\uff13\uff09\/etc\/shairport-sync.conf<\/span><\/p>\n<p>\u5916\u90e8\u51fa\u529b\u306b\u5bfe\u3057\u3066\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>general = {<br \/>\u00a0 name = &#8220;myairpi&#8221;;<br \/>};<\/p>\n<p>alsa = {<br \/> output_device = &#8220;hw:1,0&#8221;;<br \/>};<\/p>\n<p>&nbsp;<\/p>\n<p>hw:1,0\u306e\u7b87\u6240\u306f\u3001Raspi\u4e0a\u306e\u30c7\u30d0\u30a4\u30b9\u63a5\u7d9a\u72b6\u6cc1\u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>aplay -l<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u307f\u3066\u3001<\/p>\n<p>\u63a5\u7d9a\u3055\u308c\u305f\u5916\u90e8\u51fa\u529b\u306e\u30c7\u30d0\u30a4\u30b9\u30ab\u30fc\u30c9\u756a\u53f7\u3068\u3001<\/p>\n<p>\u30b5\u30d6\u30c7\u30d0\u30a4\u30b9\u756a\u53f7\u3092\u63a7\u3048\u3066\u304a\u304d\u3001<\/p>\n<p>hw:\u30c7\u30d0\u30a4\u30b9\u30ab\u30fc\u30c9\u756a\u53f7,\u30b5\u30d6\u30c7\u30d0\u30a4\u30b9\u756a\u53f7<\/p>\n<p>\u306e\u66f8\u5f0f\u3067\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u300chw\u300d\u3067\u52d5\u304b\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u306f\u3001\u300cplughw\u300d\u306b\u66f8\u304d\u63db\u3048\u305f\u3042\u3068\u3001<\/p>\n<p>systemctl restart shairport-sync<\/p>\n<p>\u3067\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5\u3057\u3066\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">\uff14\uff09\u97f3\u304c\u3061\u3063\u3061\u3083\u3044\uff01<\/span><\/p>\n<p>\u305b\u3063\u304b\u304fAirPlay\u3067\u304d\u3066\u3082\u3001\u97f3\u304c\u5c0f\u3055\u3044\u3063\u3059\u3001\u3001\u3001\u6ce3<\/p>\n<p>\u305d\u3093\u306a\u6642\u306f\u3001\u5148\u307b\u3069\u306eshairport-sync.conf\u5185\u306e<\/p>\n<p>general\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u3001\u4e0b\u8a18\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001<\/p>\n<p>\u30dc\u30ea\u30e5\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u7121\u8996\u3057\u3066\u3001\u6700\u5927\u51fa\u529b\u3067\u97f3\u3092\u51fa\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>ignore_volume_control = &#8220;yes&#8221;;<\/p>\n<p>&nbsp;<\/p>\n<p>Raspberrypi\u5074\u3067\u30dc\u30ea\u30e5\u30fc\u30e0\u306e\u8abf\u6574\u3092\u3059\u308b\u5834\u5408\u306f\u3001<\/p>\n<p>alsamixer -c 1<\/p>\n<p>\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300c1\u300d\u306e\u7b87\u6240\u306f\u3001\u5916\u90e8\u51fa\u529b\u306e\u30ab\u30fc\u30c9\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 12pt\">\uff15\uff09\u305d\u308c\u3067\u3082\u3084\u3063\u3071\u308a\u97f3\u304c\u5c0f\u3055\u3044<\/span><\/p>\n<p>\u305d\u308c\u3067\u3082\u3001\u307e\u3060\u97f3\u304c\u5c0f\u3055\u3044\u3063\u3066\u3044\u3046\u5834\u5408\u306f\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u5fc5\u8981\u306a\u96fb\u529b\uff08\uff1f\uff09\u96fb\u5727\uff08\uff1f\uff09\u96fb\u6d41\uff08\uff1f\uff09\u304c<\/p>\n<p>\u78ba\u4fdd\u51fa\u6765\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u3082\u3002<\/p>\n<p>\u7d20\u4eba\u306a\u306e\u3067\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u7533\u3057\u8a33\u306a\u3044\u3067\u3059\u304c\u3001<\/p>\n<p>\u30a2\u30ca\u30ed\u30b0\u30b9\u30d4\u30fc\u30ab\u30fc\u306b\u6700\u5927\u51fa\u529b50W\u3068\u304b100W\u3068\u304b\u66f8\u3044\u3066\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001<\/p>\n<p>\u305d\u306e\u5206\u306e\u96fb\u529b\u304c\u78ba\u4fdd\u51fa\u6765\u3066\u3044\u306a\u3044\u306e\u3067\u306f\uff1f\u3068\u3044\u3046\u8a71\u3067\u3059\u3002<\/p>\n<p>\uff08\u30a2\u30f3\u30d7\u3068\u30b9\u30d4\u30fc\u30ab\u30fc\u304c\u5408\u3063\u3066\u3044\u306a\u3044\u306e\u3082\u3042\u308b\u304b\u3082\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u79c1\u306e\u5834\u5408\u306f\u3001\u300c\u305d\u3082\u305d\u3082\u30a2\u30f3\u30d7\u3063\u3066\u4f55\uff1f\u300d\u3063\u3066\u3068\u3053\u308d\u304b\u3089\u59cb\u307e\u3063\u305f\u306e\u3067<\/p>\n<p>\u307e\u3060\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001<\/p>\n<p>\u30a2\u30f3\u30d7\u3063\u3066\u3044\u3046\u306e\u306f\u3001\u97f3\u6e90\u3092\u5165\u529b\u3068\u3057\u3066\u3001\u97f3\u58f0\u3092\u5897\u5e45\u3055\u305b\u3066\u5916\u90e8\u6a5f\u5668\u306b\u51fa\u529b\u3059\u308b\u3082\u306e\u3089\u3057\u3067\u3059\u3002<\/p>\n<p>wikipedia\u3088\u308a\u2193<\/p>\n<p>https:\/\/ja.wikipedia.org\/wiki\/%E3%82%A2%E3%83%B3%E3%83%97_(%E9%9F%B3%E9%9F%BF%E6%A9%9F%E5%99%A8)<\/p>\n<p>&nbsp;<\/p>\n<p>\u3063\u3066\u3053\u3068\u306f\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u96fb\u529b\u8db3\u308a\u3066\u306a\u3044\u3093\u3058\u3083\u306d\uff1f<\/p>\n<p>\u3068\u3044\u3046\u4e8b\u306b\u6c17\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u79c1\u306e\u5834\u5408\u306f\u3001\u30a2\u30f3\u30d7\u306f\u30e9\u30ba\u30d1\u30a4\u5074\u304b\u3089\u96fb\u6c17\u3092\u78ba\u4fdd\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>\u3053\u308c\u304c\u826f\u304f\u306a\u3044\u306e\u304b\u306a\uff1f\u3068\u601d\u3044\u3001<\/p>\n<p>\u30a2\u30f3\u30d7\u3092\u5909\u3048\u3066\u3001\u304b\u3064\u5225\u9014\u96fb\u6e90\u3092\u78ba\u4fdd\u3057\u305f\u3068\u3053\u308d\u3001<\/p>\n<p>\u3081\u3063\u3061\u3083\u30d1\u30ef\u30d5\u30eb\u306b\u97f3\u304c\u9cf4\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3046\u3061\u306e\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u6210\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>iPhone<\/p>\n<p>\u2193\u3000\uff08AirPlay\uff09<\/p>\n<p>RaspberryPi<\/p>\n<p>\u2193\u3000\uff08USB\u63a5\u7d9a\uff09<\/p>\n<p>USB\u5916\u90e8\u51fa\u529b\u7528\u6a5f\u5668<\/p>\n<p>\u2193\u3000\uff08\u30aa\u30fc\u30c7\u30a3\u30aa\u30b1\u30fc\u30d6\u30eb\u21d2\u5916\u90e8\u5165\u529b\u3078\u5909\u63db\uff09<\/p>\n<p>\u30df\u30cb\u30b3\u30f3\u30dd\uff08\u30a2\u30f3\u30d7\u4ee3\u308f\u308a\uff09\u21d2\u5916\u90e8\u96fb\u6e90\u3067\u96fb\u529b\u78ba\u4fdd<\/p>\n<p>\u2193\u3000\uff08\u901a\u5e38\u306e\u63a5\u7d9a\uff09<\/p>\n<p>\u30a2\u30ca\u30ed\u30b0\u30b9\u30d4\u30fc\u30ab\u30fc\uff08100W\u30b9\u30d4\u30fc\u30ab\u30fc2\u53f0\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u3001\u97f3\u697d\u30e9\u30a4\u30d5\u304c\u697d\u3057\u3081\u307e\u3059\u3002<\/p>\n<p>\u672c\u5f53\u306f\u30df\u30cb\u30b3\u30f3\u30dd\u3092\u7d4c\u7531\u3057\u305f\u304f\u306a\u3044\u306e\u3067\u3001<\/p>\n<p>\u305d\u3093\u306a\u3084\u308a\u65b9\u304c\u3042\u308c\u3070\u3001\u3069\u306a\u305f\u304b\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001 &nbsp; 1\u9031\u9593\u524d\u306b\u306f\u306a\u308a\u307e\u3059\u304c\u3001Amazon\u306eCyber Monday\u3001\u3001\u3001\u796d\u308a\u304c\u7d42\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u306d\u3002 \u7686\u3055\u3093\u3001\u4f55\u304b\u8cb7\u3044\u307e\u3057\u305f\u304b\u3002 &nbsp; \u79c1\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30bf\u304b\u5927\u578b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u304c\u6b32\u3057\u304b\u3063\u305f\u306e\u3067\u3001 \u30a6\u30a9\u30c3\u30c1\u30ea\u30b9\u30c8\u306b\u5165\u308c\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 \u7d50\u5c40\u8cb7\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u307e\u305f\u306e\u6a5f\u4f1a\u306b [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[348,511,512,513],"class_list":["post-5661","post","type-post","status-publish","format-standard","hentry","category-web","tag-airplay","tag-shairport-sync","tag-raspberrypi3","tag-raspberry"],"views":52,"_links":{"self":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=5661"}],"version-history":[{"count":2,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5661\/revisions"}],"predecessor-version":[{"id":5676,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/posts\/5661\/revisions\/5676"}],"wp:attachment":[{"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=5661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=5661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaswill.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=5661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}