后续提示词:让模型梳理目标、绘制节点路由图、编写自动化脚本,构建并维护完整的音频路由系统。
你目前是我的长期音频路由自动化工程师,负责此确切项目。
我需要你设计、构建并维护一个完整且可用于生产的音频路由系统,以实现我最初的目标。
请执行以下操作:
审查与优化
重新阅读原始目标以及所有先前的指令和建议。
明确任何缺失的细节(操作系统、硬件、流媒体应用、延迟容忍度、无头模式 vs GUI)。
返回一个项目符号列表,总结你理解的最终系统应实现的功能。
设计架构
用文本绘制一个简单的节点路由图(输入 → 中间节点 → 输出)。
对每个节点:命名确切的工具(例如 PipeWire 虚拟输出端、JACK 总线、OBS 音频捕获、Stereo Mix、Voicemeeter 等)。
解释为何该架构最优(延迟、稳定性、自动化、资源使用)。
构建自动化脚本
生成真实可运行的脚本(bash、PowerShell、Python 或 WirePlumber/Lua,取决于我的操作系统),用于:
创建所需的虚拟设备。
在开机/登录时自动应用路由规则。
可选:当我告知设备已更改时,重启或重新应用路由。
将每个脚本组织为可保存为文件(例如 ~/bin/audio-routing-init.sh)并可通过单个命令运行。
添加错误处理与幂等性
确保脚本:
检查依赖项是否已安装,并在可能时自动安装。
避免创建重复节点(幂等设置)。
将错误记录到文件或终端,以便我调试。
如果无法直接安装软件包,请列出确切的 apt、brew、winget 或 GUI 安装步骤。
记录维护工作流程
为我提供一个简短的维护清单:
如何停止路由。
如何重启路由。
如果我更改了音频设备,如何重新生成配置。
如何测试一切是否仍正常工作。
输出格式
使用清晰的 Markdown:
## 架构 → 节点图和工具列表。
## 安装 → 分步命令。
## 脚本 → 每个脚本放在独立的代码块中,附带文件名和简短注释。
## 维护 → 简明的项目符号列表。
不要总结整个对话;只关注可操作、可复制粘贴的内容。
现在,基于我最初的目标和我们的历史,向我展示完整的架构、脚本和维护计划。You are now my long‑term Audio Routing Automation Engineer for this exact project.
I want you to design, build, and maintain a complete, production‑ready audio‑routing system that matches my original goal.
Do the following:
Review & Refine
Re‑read the original goal and all previous instructions and suggestions.
Clarify any missing details (OS, hardware, streaming apps, latency tolerance, headless vs GUI).
Return a bullet‑list summary of what you understand the final system should do.
Design the Architecture
Draw a simple node‑routing diagram in text (inputs → intermediate nodes → outputs).
For each node: name the exact tool (e.g., PipeWire virtual sink, JACK bus, OBS audio capture, Stereo Mix, Voicemeeter, etc.).
Explain why this architecture is optimal (latency, stability, automation, resource usage).
Build Automation Scripts
Generate real, runnable scripts (bash, PowerShell, Python, or WirePlumber/Lua, depending on my OS) that:
Create the required virtual devices.
Apply the routing rules automatically on boot/login.
Optionally restart or re‑apply the routing if I tell you a device changed.
Structure each script so it can be saved as a file (e.g., ~/bin/audio-routing-init.sh) and run with a single command.
Add Error‑Handling & Idempotency
Ensure the scripts:
Check if dependencies are installed and install them if possible.
Avoid creating duplicate nodes (idempotent setup).
Log errors into a file or the terminal so I can debug.
If you cannot install packages directly, list the exact apt, brew, winget, or GUI‑install steps.
Document a Maintenance Workflow
Provide a small maintenance checklist for me:
How to stop the routing.
How to restart it.
How to regenerate configs if I change audio devices.
How to test that everything is still working.
Output Format
Use Markdown clearly:
## Architecture → node diagram and tool list.
## Installation → step‑by‑step commands.
## Scripts → each script in its own code block with a filename and a short comment.
## Maintenance → concise bullet list.
Do not summarize the whole conversation; focus only on actionable, copy‑paste‑ready content.
Now, based on my original goal and our history, show me the full architecture, scripts, and maintenance plan.