id: 2bd26b6b453c4d328e3d54f6e181bdfc
parent_id: 
item_type: 1
item_id: 108a7a135c614cffaf6e345593abd113
item_updated_time: 1764365029462
title_diff: "[{\"diffs\":[[1,\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":28}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>群晖部署XiaoMusic：小米音箱Pro的音乐自由之路</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"41280\\\"></a>\\\r\\\n<h1>群晖部署XiaoMusic：小米音箱Pro的音乐自由之路</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=MzI2NTIyNDczNw==&amp;mid=2247487908&amp;idx=1&amp;sn=f616eb65d44bf49d8abc211759db2264&amp;chksm=ebf38ac7ec5062450fff4e4240558742cf6e7fd9398c31051a78a27a1f139fe69dd1ecfd48a2&amp;mpshare=1&amp;scene=1&amp;srcid=0502UlhM8ImyQnPwoHtzVWVh&amp;sharer_shareinfo=82fedfb39b2b6081147ada3cad7133ce&amp;sharer_shareinfo_first=82fedfb39b2b6081147ada3cad7133ce#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MzI2NTIyNDczNw==&amp;mid=2247487...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"\\\"><div><div><h1 style=\\\"margin:0\\\"> 群晖部署XiaoMusic：小米音箱Pro的音乐自由之路 </h1><div><span style=\\\"position:relative\\\">原创</span><span><span style=\\\"position:relative\\\">IT狂人日志</span></span><span><a style=\\\"position:relative\\\"> IT狂人日志 </a></span><span><em></em></span></div><div style=\\\";\\\"><div style=\\\"font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Helvetica, Arial, sans-serif;line-height: 1.75;font-size: 16px;\\\"><h1 style=\\\"margin:1em 0;text-align:center;text-shadow:rgba(0,0,0,0.1) 2px 2px 4px;font-size:1.5em\\\"><span><span style=\\\"font-size: 20px;\\\">一、事件驱动</span></span></h1><p style=\\\"margin:1em 0\\\"><span>小爱音箱Pro进家好几年了，虽支持语音交互与内容播放，但经常无法播放想听的歌曲。</span></p><p style=\\\"margin:1em 0\\\"><span>老婆说：“你号称IT狂人，就不能想想办法嘛？”</span></p><p style=\\\"margin:1em 0\\\"><span>既然老婆发话了，那咱就得想办法解决，好在找到了XiaoMusic，这是个开源的解决方案，可以使NAS与小爱音箱连接，实现</span><strong><span>播放本地音乐和自动搜索下载歌曲</span></strong><span>的功能。</span></p><hr style=\\\"border-top: 1px solid rgb(221, 221, 221);border-right: none;border-bottom: none;border-left: none;border-image: initial;margin-top: 2em;margin-bottom: 2em;\\\"/><h2 style=\\\"margin:1em 0;text-align:center;font-size:1.2em;border-bottom:1px solid rgb(247,247,247);font-weight:bold\\\"><span>二、准备工作</span></h2><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>1. 设备及存储</span></h3><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>NAS设备</span></strong><span>：群晖NAS。不好意思，卖给客户的都是正版群晖，自己家里用个黑的；</span></p><div><span></span></div><p style=\\\"margin:1em 0\\\"><span><br/></span></p><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>存储规划</span></strong><span>：单独插了块500GB硬盘，用来存放音乐文件，想来是足够的；</span></p><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>网络环境</span></strong><span>：群晖NAS与小米音箱需处于同一局域网内，在不在同一个VLAN倒是无所谓。</span></p><p style=\\\"margin:1em 0\\\"><span>注意：安装XiaoMusic的时候，群晖NAS需要科学上网一次，我用的方法是，电脑上的clash开启代理：即Allow LAN启用。</span></p><p style=\\\"margin:1em 0\\\"><span>然后群晖的网络设置里面，代理服务器打开，填写电脑的IP地址和代理端口就行，默认是7890端口。</span></p><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>2. 小米账号及小米音箱的具体型号</span></h3><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>小米账号</span></strong><span>：需与米家APP登录账号一致；</span></p><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>设备型号</span></strong><span>：就在小爱音箱底部标签，我家的是LX06。</span></p><hr style=\\\"border-top: 1px solid rgb(221, 221, 221);border-right: none;border-bottom: none;border-left: none;border-image: initial;margin-top: 2em;margin-bottom: 2em;\\\"/><h2 style=\\\"margin:1em 0;text-align:center;font-size:1.2em;border-bottom:1px solid rgb(247,247,247);font-weight:bold\\\"><span>三、部署步骤（图文详解）</span></h2><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>1. Docker环境配置</span></h3><ol style=\\\"margin:0;padding-left:1.2em\\\"><li style=\\\"margin-left: 1.2em;\\\"><p style=\\\"margin:1em 0\\\"><span>在群晖「套件中心」安装</span><strong><span>Docker</span></strong></p></li><li style=\\\"margin-left: 1.2em;\\\"><p style=\\\"margin:1em 0\\\"><span>搜索并拉取镜像：</span><code style=\\\"font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;color: rgb(255, 80, 44);padding: 4px 6px;font-size: 0.78em;\\\"><span>hanxi/xiaomusic</span></code><span><img src=\\\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路_files/640.png\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 100%;height: auto;margin: 0px auto;display: block;\\\"/></span></p></li><li style=\\\"margin-left: 1.2em;\\\"><p style=\\\"margin:1em 0\\\"><span>创建容器时填写关键参数： • </span><strong><span>环境变量</span></strong><span>（必填）：</span></p><pre style=\\\"margin: 1em 0.5em;border-radius: 5px;font-size: 0.8em;line-height: 2;padding: 1em;background-color: rgba(175, 184, 193, 0.2);\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>MI_USER=小米账号</span><br/><span>MI_PASS=小米账号的密码</span><br/><span>MI_HARDWARE=LX06  </span><span style=\\\"color: rgb(106, 115, 125);\\\"><span># 自家的音箱型号</span></span><br/><span>XIAOMUSIC_HOSTNAME=群晖内网IP</span><br/><span>XIAOMUSIC_SEARCH=bilisearch:  </span><span style=\\\"color: rgb(106, 115, 125);\\\"><span># 启用B站搜索</span></span><br/></div></pre><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>文件夹映射</span></strong><span>：</span></p><pre style=\\\"margin: 1em 0.5em;border-radius: 5px;font-size: 0.8em;line-height: 2;padding: 1em;background-color: rgba(175, 184, 193, 0.2);\\\"><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>/volume1/music:/app/music  # 本地音乐存储路径</span><br/></div></pre><p style=\\\"margin:1em 0\\\"><span>• </span><strong><span>端口映射</span></strong><span>：</span><code style=\\\"font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;color: rgb(255, 80, 44);padding: 4px 6px;font-size: 0.78em;\\\"><span>8090:8090</span></code><span>（默认端口）</span></p><div style=\\\"margin: 1em 0px;\\\"><img src=\\\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路_files/640 [1].png\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 100%;height: auto;margin: 0px auto;display: block;\\\"/></div></li></ol><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>2. 后台配置</span></h3><ol style=\\\"margin:0;padding-left:1.2em\\\"><li style=\\\"margin-left: 1.2em;\\\"><div><span>访问</span><code><span>http://群晖IP:8090</span></code><span>进入管理界面，点击「怀旧主题」<img src=\\\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路_files/640 [2].png\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 100%;height: auto;margin: 0px auto;display: block;\\\"/></span></div></li><li style=\\\"margin-left: 1.2em;\\\"><div><span>勾选音箱型号，确认账号密码、端口、目录等设置；<img src=\\\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路_files/640 [3].png\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 100%;height: auto;margin: 0px auto;display: block;\\\"/></span></div></li><li style=\\\"margin-left: 1.2em;\\\"><div><span>保存后通过「测试播放」验证连接状态，如果有声音，表示配置成功。</span></div></li></ol><hr style=\\\"border-top: 1px solid rgb(221, 221, 221);border-right: none;border-bottom: none;border-left: none;border-image: initial;margin-top: 2em;margin-bottom: 2em;\\\"/><h2 style=\\\"margin:1em 0;text-align:center;font-size:1.2em;border-bottom:1px solid rgb(247,247,247);font-weight:bold\\\"><span>四、功能亮点</span></h2><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>1. 语音点播，自由播放</span></h3><p style=\\\"margin:1em 0\\\"><span>• 支持FLAC/WAV/MP3等格式，无损播放NAS中存储的歌曲以及有声读物等。 • 自动创建JSON歌单，支持语音指令，比如：“播放歌曲郑智化的星星点灯”，如果本地没有这首歌曲，会触发自动下载，然后再播放，并且添加到列表。</span></p><h3 style=\\\"margin:1em 0;font-size:1em;font-weight:bold\\\"><span>2. 手机点播，一样方便</span></h3><p style=\\\"margin:1em 0\\\"><span>• 自适应页面，支持手机登录，可点播、可下载，也可创建不同的播放列表，很方便。</span></p><h2 style=\\\"margin:1em 0;text-align:center;font-size:1.2em;border-bottom:1px solid rgb(247,247,247);font-weight:bold\\\"><span><img src=\\\"群晖部署XiaoMusic：小米音箱Pro的音乐自由之路_files/640.jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 100%;height: auto;margin: 0px auto;display: block;\\\"/></span></h2><h2 style=\\\"margin:1em 0;text-align:center;font-size:1.2em;border-bottom:1px solid rgb(247,247,247);font-weight:bold\\\"><span>五、常见问题</span></h2><strong><span>音箱无响应</span></strong><br/><div><span>• 检查网络是否通畅群；</span></div><div><span>• 检查8090端口是否有响应； </span></div><div><span>• 确认账号密码是否正确； </span></div><div><span>• 确认设备型号与米家APP是否一致。</span></div><div><span></span></div><div><span><br/></span></div><hr style=\\\"border-top: 1px solid rgb(221, 221, 221);border-right: none;border-bottom: none;border-left: none;border-image: initial;margin-top: 2em;margin-bottom: 2em;\\\"/><blockquote style=\\\"background: rgba(175, 184, 193, 0.2);border-left: 0.5em solid rgb(204, 204, 204);margin: 1.5em 0px;padding: 0.5em 10px;font-style: italic;font-size: 0.9em;\\\"><p style=\\\"margin:1em 0\\\"><strong><span>总结</span></strong><span>：在群晖上部署XiaoMusic，成功为老婆打造了个性化的乐库，得好评一个。</span></p></blockquote></div><div><span><br/></span></div></div></div><div><div><div><div style=\\\"display:flex;color:rgba(0,0,0,.3);\\\"><div style=\\\"color:rgba(0,0,0,.3);\\\">个人观点，仅供参考</div></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":10671}]"
metadata_diff: {"new":{"id":"108a7a135c614cffaf6e345593abd113","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348873936,"user_updated_time":1764345629762,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":1764365029462},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:24:57.239Z
created_time: 2025-11-28T21:24:57.239Z
type_: 13