<?xml version="1.0" encoding="utf-8" standalone="yes"?><?xml-stylesheet type="text/xsl" href="/atom.xsl"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-cn"><id>https://maxlen727.github.io/tags/%E5%B0%8F%E8%AE%B0/</id><title>小记 on 暮歌</title><updated>2026-10-19T05:35:03Z</updated><language>zh-cn</language><subtitle>自留地，不是技术 blog, 仅仅用作我生活的记录</subtitle><background>/background_hu_d92feabfcd60f52c.webp</background><accent>139, 92, 246</accent><accentLight>167, 139, 250</accentLight><debounce>70</debounce><author><name>微恙</name><email>maxlen@duck.com</email><uri>https://maxlen727.github.io/</uri></author><link href="https://maxlen727.github.io/tags/%E5%B0%8F%E8%AE%B0/atom.xml" rel="self" type="application/atom+xml"/><link href="https://maxlen727.github.io/tags/%E5%B0%8F%E8%AE%B0/" rel="alternate" type="text/html"/><generator uri="https://gohugo.io" version="0.148.2">Hugo</generator><rights>© 2021 - 2026 MaxLen All Rights Reserved.</rights><entry><id>https://maxlen727.github.io/posts/pipewire-obs-virtual-mic/</id><title>用 PipeWire 和 OBS 实现 Linux 下虚拟麦克风</title><published>2025-03-22T06:30:43+08:00</published><updated>2025-03-22T06:30:43+08:00</updated><author><name>微恙</name></author><link href="https://maxlen727.github.io/posts/pipewire-obs-virtual-mic/" rel="alternate" type="text/html"/><summary>在视频录制或直播时，OBS 不仅能作为虚拟摄像头，还能通过一些设置将音频输出转换成虚拟麦克风，以此来享受 OBS 的降噪、增益、调音或别的插件效果</summary><content type="html" xml:base="https://maxlen727.github.io/posts/pipewire-obs-virtual-mic/"><![CDATA[<p>在视频录制或直播时，OBS 不仅能作为虚拟摄像头，还能通过一些设置将音频输出转换成虚拟麦克风，以此来享受 OBS 的降噪、增益、调音或别的插件效果。</p>
<hr>

<h2 class="relative group">1. 创建虚拟音频设备 
    <div id="1-创建虚拟音频设备" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100 select-none">
        <a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#1-%e5%88%9b%e5%bb%ba%e8%99%9a%e6%8b%9f%e9%9f%b3%e9%a2%91%e8%ae%be%e5%a4%87" aria-label="锚点">#</a>
    </span>        
    
</h2>
<p>KDE 6下可以利用 PipeWire 来创建虚拟设备。首先，需要建立两个虚拟设备：</p>
<ul>
<li><strong>Virtual-Sink</strong>：作为 OBS 的虚拟音频输出设备。</li>
<li><strong>Virtual-Mic</strong>：作为虚拟麦克风输入设备，将 Virtual-Sink 的监控音频传输到其他应用程序。</li>
</ul>
<p>打开终端，输入以下命令：</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pactl load-module module-null-sink media.class<span class="o">=</span>Audio/Sink <span class="nv">sink_name</span><span class="o">=</span>Virtual-Sink
</span></span><span class="line"><span class="cl">pactl load-module module-null-sink media.class<span class="o">=</span>Audio/Source/Virtual <span class="nv">sink_name</span><span class="o">=</span>Virtual-Mic
</span></span></code></pre></div><p>这两条命令会分别创建名为 <code>Virtual-Sink</code> 和 <code>Virtual-Mic</code> 的虚拟音频设备。(&gt;ω&lt;)</p>
<hr>

<h2 class="relative group">2. 连接音频通道 
    <div id="2-连接音频通道" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100 select-none">
        <a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#2-%e8%bf%9e%e6%8e%a5%e9%9f%b3%e9%a2%91%e9%80%9a%e9%81%93" aria-label="锚点">#</a>
    </span>        
    
</h2>
<p>下一步是将 OBS 的音频输出连接到 Virtual-Sink，再将 Virtual-Sink 的监控输出链接到 Virtual-Mic。具体操作如下：</p>
<ol>
<li>使用 <code>pw-link</code> 命令列出所有音频输出设备，找到 OBS 的音频输出设备（通常名称中会包含 <code>obs</code>）：</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pw-link -o
</span></span></code></pre></div><ol start="2">
<li>将 OBS 的左右声道分别连接到 Virtual-Sink：</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pw-link OBS-Monitor:output_FL Virtual-Sink:playback_FL
</span></span><span class="line"><span class="cl">pw-link OBS-Monitor:output_FR Virtual-Sink:playback_FR
</span></span></code></pre></div><ol start="3">
<li>再将 Virtual-Sink 的监控输出连接到 Virtual-Mic 的左右声道：</li>
</ol>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">pw-link Virtual-Sink:monitor_FL Virtual-Mic:input_FL
</span></span><span class="line"><span class="cl">pw-link Virtual-Sink:monitor_FR Virtual-Mic:input_FR
</span></span></code></pre></div><p>这样一来，OBS 输出的音频就会经过 Virtual-Sink，再由 Virtual-Mic 将音频传递给其他应用程序。(๑•̀ㅂ•́)و✧</p>
<hr>

<h2 class="relative group">3. OBS 内部设置 
    <div id="3-obs-内部设置" class="anchor"></div>
    
    <span
        class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100 select-none">
        <a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#3-obs-%e5%86%85%e9%83%a8%e8%ae%be%e7%bd%ae" aria-label="锚点">#</a>
    </span>        
    
</h2>
<p>为了让 OBS 的音频正确传输，咱们还需要在 OBS 内部进行相应设置：</p>
<ul>
<li><strong>设置音频输出设备</strong>：
在 OBS 菜单中，依次点击“文件” &gt; “设置” &gt; “音频”，将“高级”中的“监听设备”设置为刚刚创建的 <code>Virtual-Sink</code>。</li>
<li><strong>启用音频监听</strong>：
在 OBS 主界面，点击音频混音器中齿轮图标。将需要传输的音频源的“音频监听”设置为“监听和输出”，这样 OBS 会同时输出和监听该音频。</li>
</ul>
<hr>
<p>以上就是 Linux 下通过 PipeWire 配置 OBS 虚拟麦克风的全部步骤，希望能帮助各位轻松实现音频传输，享受更好的直播或录制体验！(≧◡≦)喵～</p>
<blockquote>
<p>本文使用了 AI 协助写作</p></blockquote>
]]></content><category term="Linux"/><category term="Wayland"/><category term="OBS"/><category term="小记"/></entry><entry><id>https://maxlen727.github.io/posts/opensuse-sogou-log-2/</id><title>openSUSE 下搜狗输入法 Bug＆Fix 一记 ft. openSUSE 使用日志（2）</title><published>2023-07-23T10:35:25+08:00</published><updated>2024-02-12T10:35:25+08:00</updated><author><name>微恙</name></author><link href="https://maxlen727.github.io/posts/opensuse-sogou-log-2/" rel="alternate" type="text/html"/><summary>Linux 下几乎就没有什么好用的拼音输入法。sunpinyin, 四叶草拼音之类的都试过，还是种种不舒畅。最后想到搜狗输入法，然而它想在 openSUSE 下正常使用可还得花点功夫。</summary><content type="html" xml:base="https://maxlen727.github.io/posts/opensuse-sogou-log-2/"><![CDATA[<p>束束最近在整理自己的文章，这篇应该过旧了&hellip;&hellip;可能没有看的必要了，但是还是不舍得删掉，毕竟那也是束束自己探索 Linux 的痕迹啊</p>
<hr>
<p>先把输入法安装了再说：</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">opi sogou
</span></span></code></pre></div><p>装完是没法使用的，不仅如此，如果在 fcitx 里切换到它还会一直报错。</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.5cmn11yxcvs0.webp">

  
</figure>
</p>
<p>显然这可不是删除 .config 里的文件就能解决的，先去 openSUSE 论坛里查查是怎么回事吧？</p>
<p><a
  href="https://forum.suse.org.cn/t/topic/10208/3"
    target="_blank"
  >搜狗输入法异常！请删除 .config/SogouPY 并重启</a></p>
<p><a
  href="https://forum.suse.org.cn/t/linux/4773"
    target="_blank"
  >解决搜狗输入法在某些 linux 系统下不能输入汉字的方法！</a></p>
<p><a
  href="https://forum.suse.org.cn/t/topic/12467"
    target="_blank"
  >安装搜狗输入法 2.3.1.0112 成功</a></p>
<p>这里有三则相关的内容，依照里面的内容，尝试安装 libQtWebKit4</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">sudo zypper in libQtWebKit4
</span></span></code></pre></div><p>然而并不能行。但大致了解到可能是缺少依赖所致。遂尝试用终端运行查找问题。</p>
<p>openSUSE 论坛中这位提到了搜狗输入法包名为 sogouqimpanel</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.2m0f6cn4pf80.webp">

  
</figure>
</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.t3vchll5bnk.webp">

  
</figure>
</p>
<p>其实正确包名是 sogou-qimpanel</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.6pvvltu7dy80.webp">

  
</figure>
</p>
<p>这里运行之后很明显看出少了 <a
  href="https://pkgs.org/download/libfcitx-qt.so.0%28%29%2864bit%29"
    target="_blank"
  >libfcitx-qt.so.0</a> 运行库，遂去查找</p>
<p>pkgs 这里虽没有 openSUSE 的，但作为 Fedora 的“亲戚”，我们还是可以借用一下它的 rpm 包的</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.2wzczg9j7w60.webp">

  
</figure>
</p>
<p>然而安装此包是却又遇到了另一个依赖问题，无奈，继续找包</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.74efcn9olx80.webp">

  
</figure>
</p>
<p>在这里寻到</p>
<p><a
  href="https://rpmfind.net/linux/rpm2html/search.php?query=liblua-5.4.so%28%29%2864bit%29"
    target="_blank"
  >RPM resource liblua-5.4.so()(64bit)</a></p>
<p>其实 pkgs 中也有这个包，但束束尝试之后发现并不能解决，而 RPM resource 网站里的则可以，所以用它了。</p>
<p>再次尝试启动后又报错，仍然少依赖</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.69vv34ugnu80.webp">

  
</figure>
</p>
<p>只得再去寻找</p>
<p><a
  href="https://rpmfind.net/linux/rpm2html/search.php?query=libidn.so.11%28%29%2864bit%29"
    target="_blank"
  >RPM resource libidn.so.11()(64bit)</a></p>
<p>这个包也是 pkgs 里有，但安装后不能解决问题，所以还是来 RPM resource 里找。</p>
<p>这个库安装后就算是终于解决了，至此搜狗拼音输入法就可以正常使用了</p>
<p>






<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="image" src="https://github.com/maxlen727/picx-images-hosting/raw/master/image.63vfts8rg9o0.webp">

  
</figure>
</p>
]]></content><category term="Linux"/><category term="小记"/><category term="搜狗输入法"/><category term="OpenSUSE"/></entry><entry><id>https://maxlen727.github.io/posts/mokee-1/</id><title>魔趣遗老的碎碎念（一）</title><published>2023-06-07T10:35:25+08:00</published><updated>2024-02-12T10:35:25+08:00</updated><author><name>微恙</name></author><link href="https://maxlen727.github.io/posts/mokee-1/" rel="alternate" type="text/html"/><summary>今天看了一下博客的关于页，突然看见一个“魔趣粉”的tag，顿时让我想起了曾经的刷机快乐岁月，再看今日魔趣退去，感慨万分。</summary><content type="html" xml:base="https://maxlen727.github.io/posts/mokee-1/"><![CDATA[<p>诸位拾星者们好，这里是晚上在被窝里胡思乱想的束束。</p>
<p>刚刚翻手机看到魔趣项目终止维护，不由回忆起了以前折腾魔趣的时光，感慨而发







<figure>
    <img class="my-0 rounded-md" loading="lazy" alt="https://www.mokeedev.com/images/logo.png" src="https://www.mokeedev.com/images/logo.png">

  
</figure>

束束小时候有手机比较早，在五六岁的时候就获得了一台三星 Galaxy. 那会束束还并不清楚有“手机游戏”这样神奇的玩意，束束玩手机的最大乐趣就是尝试不同的软件（尤其是不同的桌面）。这可能就是我最早“折腾”的开始，让束束对这些发光小玻璃产生了极大的兴趣，以至于此后的生活里动不动就想要挠挠它们。</p>
<p>后来又从父母那里继承了红米 Note. 这台机器对我意义重大，这也是一台刷机小王子，让束束尝试了很多很多不同的 Rom, 切身感受了刷机文化最风行的时代并参与其中。</p>
<p>束束接触刷机是什么时候呢？记忆早已模糊，具体的时岁已经不可考了。大概是八岁或者九岁的时候吧。当时刷机什么也不懂，但好奇心当然不会害死束束这样的聪明猫，好奇是驱动束束开始折腾手机的第一动力。咱某天看见网上有个叫“龙二哥手机续航”的创作者的视频：<a
  href="https://www.bilibili.com/video/BV1ox411Y79k"
    target="_blank"
  >小米note3双系统</a>。那个视频里面提到了魔趣。了解之后发现这是一个类原生的民间维护的且有良好中国本地化的系统。束束又去补了补课，了解到类原生、开源、刷机等词。之后便希望刷机试试看。</p>
<p>所以束束第一个接触到的 Rom 就是魔趣。应该是在早上 5 点多的时候刷进去的，激动的心情难以言表了，一直到去学校了还惦记着家里的那台魔趣。</p>
<p>至于刷入的过程嘛——（脸红）诸位拾星者们请继续看下去吧，束束现在回忆起来有些头晕了：</p>
<p>我是记得小米的系统升级 APP 里有个从本地安装 zip 的功能，也查了网上的教程，看见刷机都要用电脑。而束束想的是：不用啊，网上的方法那么复杂，反正都是要刷入这个 zip 吧，我直接用系统升级的本地安装不就好了？</p>
<p>(๑&gt;؂&lt;๑) 欸嘿，很天真的想法对吧！</p>
<p>并且那时候小米的系统更新 APP 要本地安装 zip 是没有任何校验的——她不管你刷的是不是MIUI。所以依猫脑的简单思维来说，那咱用这个功能刷魔趣也是没问题的吧！！所以直接去魔趣官网下包开刷。</p>
<p>束束刷的是魔趣 MK60 稳定版，那是安卓6刚出来的一段时间，而那时的笨蛋 MIUI 通常不会为维护中的机器提供夸安卓版本的更新，所以那台红米 Note 的 MIUI 迟迟停在安卓4.4，也没有当时束束觉得很酷的分屏功能。但是魔趣直接可以让我升级到安卓 6, 并带来分屏的特性。这让束束欣喜若狂。另外束束还发现开发者模式里自带了 root 权限！也恰逢跳一跳刚刚出来，这个恶趣味坏猫竟然就用 root 到游戏蜂窝里找微信跳一跳外挂刷成绩（笑）。</p>
<p>好奇心是没有害死束束啦，但是却带来了一些额外的麻烦：</p>
<p>因为束束是直接用 MIUI 系统更新的本地 zip 升级安装，导致这手机里竟然还带有 MIUI 的部分残留，比如说时钟还是 MIUI 的 icon, 并且无法打开之类。并且原来的 APP 与数据也都保留了下来，可能因为安卓 4.4 到安卓 6.0 发生了比较大的 runtime 方面的变化，导致很多更新带过来的软件是无法打开的。束束发现的解决办法是覆盖安装一下，但现在想来那种刷机操作下能开机简直就算是奇迹了 hhhh</p>
<p>后来用了不到一星期又想换回 MIUI（看来束束小时候就有点 distro hoping 的迹象了），但不知道怎么刷回去了，头脑简单的猫便去网上找刷机大师什么的，结果发现某些软件一安装就会导致系统无限重启（想来估计是当时没三清留下的祸根）。但这可吓坏了当时的束束——不懂的我以为是魔趣不许我回到 MIUI, 所以直接不给开机了，束束到了 rec 里清了用户数据才能再次开机，这样的话就只好先继续把 MK 用下去了。</p>
<p>（话说那会还不知道酷安，玩机真的纯靠自己瞎琢磨）</p>
<p>后面在这台机上用 MK60 绝对不顺，不过宙斯盾还是给束束留下了深刻印象，还有比 MIUI 强的续航，比 MIUI 好的性能调度。也就让我后面产生了与 MK71, MK90 的缘分。不过这都是后话了，以后咱再说&hellip;</p>
]]></content><category term="魔趣"/><category term="小记"/><category term="刷机"/></entry></feed>