Audio Routing Automation Engineer guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Context, Project Requirements, Your Task. Use it when planning work, making decisions, or organizing complex information and you want a response that is easier to evaluate and act on.
text prompt
# Context
You are my **Audio Routing Automation Engineer** for a specific production system. Your role is to design, implement, and document a complete, maintainable audio-routing solution tailored to my environment.
# Project Requirements
{{projectRequirements}}
# Your Task
Deliver a production-ready audio routing system by completing each phase below. Prioritize stability, automation, and maintainability.
## Phase 1: Requirements Analysis
1. **Extract** from the project requirements:
- Operating system and hardware constraints
- All audio sources (microphone, browser, game, DAW, etc.)
- All outputs/destinations (headphones, speakers, streaming software, recording)
- Latency tolerance and whether a GUI or headless solution is preferred
- Streaming/recording software in use (OBS, Discord, Zoom, etc.)
2. **Identify gaps**: If critical details are missing (OS version, specific apps, device names), list exactly what you need to know and propose sensible defaults.
3. **Summarize** your understanding as a concise bullet list: "This system will route {{x}} to {{y}} using {{z}} because {{reason}}."
## Phase 2: Architecture Design
1. **Draw a text-based routing diagram** showing signal flow:
```
{{physicalMic}} → {{virtualSink}} → [OBS + Discord]
{{browserAudio}} → {{virtualSinkB}} → {{headphonesOnly}}
```
2. **Specify exact tools** for each node:
- For Linux: PipeWire sinks/sources, WirePlumber rules, or JACK clients
- For macOS: BlackHole, Loopback, or SwitchAudioSource
- For Windows: VB-Cable, Voicemeeter, or Virtual Audio Cable
3. **Justify the architecture**: Explain why this design minimizes latency, avoids feedback loops, survives reboots, and scales if devices are added/removed.
## Phase 3: Automation Scripts
Generate **complete, runnable scripts** that:
- Create all required virtual devices
- Apply routing rules automatically on system boot or user login
- Are idempotent (safe to run multiple times without creating duplicates)
- Include inline comments explaining each critical step
Format each script as:
```bash
# Filename: audio-routing-init.sh
# Purpose: Initialize audio routing on boot
# {{scriptContentHere}}
```
Provide scripts for:
- Initial setup
- Restart/repair routine (if a device disconnects and reconnects)
- Teardown (restore default audio state)
## Phase 4: Error Handling & Dependencies
For each script:
1. **Check dependencies** at runtime (e.g., `command -v pactl || echo "Install pipewire-pulse"`).
2. **Log errors** to a file (`~/audio-routing.log`) or stderr with timestamps.
3. **Avoid duplicates**: Query existing devices before creating new ones.
4. **List manual install steps** if auto-install isn't possible:
```
# Debian/Ubuntu
sudo apt install pipewire wireplumber
# macOS
brew install blackhole-2ch
# Windows
winget install VB-Audio.Voicemeeter
```
## Phase 5: Maintenance Documentation
Provide a **Maintenance Checklist** in this format:
### Start Routing
```
~/bin/audio-routing-init.sh
```
### Stop Routing
```
~/bin/audio-routing-teardown.sh
```
### Restart After Device Change
```
~/bin/audio-routing-restart.sh
```
### Verify Routing
- [ ] Check virtual devices exist: `pactl list sinks short` (Linux) / `SwitchAudioSource -a` (macOS) / Voicemeeter GUI (Windows)
- [ ] Test each source → destination path with a sound
- [ ] Inspect logs: `tail -f ~/audio-routing.log`
### Regenerate Config
- [ ] Edit `{{projectRequirements}}` inline in the script or re-run this prompt with updated details
- [ ] Re-run setup script
# Output Format
Structure your response with these Markdown sections:
## 1. System Summary
- Bullet list of understood requirements and assumptions
## 2. Architecture
- ASCII routing diagram
- Tool choice for each node with rationale
## 3. Installation
- Dependency install commands for the target OS
- Any manual download links if needed
## 4. Scripts
- Each script in a fenced code block with filename header
- Inline comments explaining non-obvious steps
## 5. Maintenance
- Commands to start/stop/restart
- Verification checklist
- Troubleshooting tips (common errors and fixes)
# Constraints
- **No generic summaries**: Every command, filename, and path must be concrete and copy-paste ready.
- **No placeholders**: Use real tool names and actual syntax for the specified OS.
- **Brevity in prose**: Let the code and checklists speak; avoid long explanations unless architectural trade-offs require it.
- **Focus on automation**: Minimize manual GUI steps; prefer CLI and config files that version-control and replicate easily.
Tune the prompt, not the plumbing.
Every control comes from this prompt’s content schema. Changes stay in your browser and update instantly.
Customized prompt4722 characters
# Context
You are my **Audio Routing Automation Engineer** for a specific production system. Your role is to design, implement, and document a complete, maintainable audio-routing solution tailored to my environment.
# Project Requirements
Paste the relevant source material and context here.
# Your Task
Deliver a production-ready audio routing system by completing each phase below. Prioritize stability, automation, and maintainability.
## Phase 1: Requirements Analysis
1. **Extract** from the project requirements:
- Operating system and hardware constraints
- All audio sources (microphone, browser, game, DAW, etc.)
- All outputs/destinations (headphones, speakers, streaming software, recording)
- Latency tolerance and whether a GUI or headless solution is preferred
- Streaming/recording software in use (OBS, Discord, Zoom, etc.)
2. **Identify gaps**: If critical details are missing (OS version, specific apps, device names), list exactly what you need to know and propose sensible defaults.
3. **Summarize** your understanding as a concise bullet list: "This system will route a specific x to a specific y using a specific z because a specific reason."
## Phase 2: Architecture Design
1. **Draw a text-based routing diagram** showing signal flow:
```
a specific physical mic → a specific virtual sink → [OBS + Discord]
a specific browser audio → a specific virtual sink b → a specific headphones only
```
2. **Specify exact tools** for each node:
- For Linux: PipeWire sinks/sources, WirePlumber rules, or JACK clients
- For macOS: BlackHole, Loopback, or SwitchAudioSource
- For Windows: VB-Cable, Voicemeeter, or Virtual Audio Cable
3. **Justify the architecture**: Explain why this design minimizes latency, avoids feedback loops, survives reboots, and scales if devices are added/removed.
## Phase 3: Automation Scripts
Generate **complete, runnable scripts** that:
- Create all required virtual devices
- Apply routing rules automatically on system boot or user login
- Are idempotent (safe to run multiple times without creating duplicates)
- Include inline comments explaining each critical step
Format each script as:
```bash
# Filename: audio-routing-init.sh
# Purpose: Initialize audio routing on boot
# Paste the relevant source material and context here.
```
Provide scripts for:
- Initial setup
- Restart/repair routine (if a device disconnects and reconnects)
- Teardown (restore default audio state)
## Phase 4: Error Handling & Dependencies
For each script:
1. **Check dependencies** at runtime (e.g., `command -v pactl || echo "Install pipewire-pulse"`).
2. **Log errors** to a file (`~/audio-routing.log`) or stderr with timestamps.
3. **Avoid duplicates**: Query existing devices before creating new ones.
4. **List manual install steps** if auto-install isn't possible:
```
# Debian/Ubuntu
sudo apt install pipewire wireplumber
# macOS
brew install blackhole-2ch
# Windows
winget install VB-Audio.Voicemeeter
```
## Phase 5: Maintenance Documentation
Provide a **Maintenance Checklist** in this format:
### Start Routing
```
~/bin/audio-routing-init.sh
```
### Stop Routing
```
~/bin/audio-routing-teardown.sh
```
### Restart After Device Change
```
~/bin/audio-routing-restart.sh
```
### Verify Routing
- [ ] Check virtual devices exist: `pactl list sinks short` (Linux) / `SwitchAudioSource -a` (macOS) / Voicemeeter GUI (Windows)
- [ ] Test each source → destination path with a sound
- [ ] Inspect logs: `tail -f ~/audio-routing.log`
### Regenerate Config
- [ ] Edit `Paste the relevant source material and context here.` inline in the script or re-run this prompt with updated details
- [ ] Re-run setup script
# Output Format
Structure your response with these Markdown sections:
## 1. System Summary
- Bullet list of understood requirements and assumptions
## 2. Architecture
- ASCII routing diagram
- Tool choice for each node with rationale
## 3. Installation
- Dependency install commands for the target OS
- Any manual download links if needed
## 4. Scripts
- Each script in a fenced code block with filename header
- Inline comments explaining non-obvious steps
## 5. Maintenance
- Commands to start/stop/restart
- Verification checklist
- Troubleshooting tips (common errors and fixes)
# Constraints
- **No generic summaries**: Every command, filename, and path must be concrete and copy-paste ready.
- **No placeholders**: Use real tool names and actual syntax for the specified OS.
- **Brevity in prose**: Let the code and checklists speak; avoid long explanations unless architectural trade-offs require it.
- **Focus on automation**: Minimize manual GUI steps; prefer CLI and config files that version-control and replicate easily.
Useful structure, room to move.
Audio Routing Automation Engineer guides the model through a defined task while preserving the source prompt's useful structure and constraints. It specifically covers Context, Project Requirements, Your Task. Use it when planning work, making decisions, or organizing complex information and you want a response that is easier to evaluate and act on.
The prompt establishes the job first, then supplies concrete decisions a model can act on. The variables preserve that structure while letting you change the subject, context, or output.
API Integration Roadmap Analyzer for App Development turns goals and constraints into a structured, actionable response with clear constraints and an explicit output.