跳到正文
Skillpedia
音频与语音7.8k · #12839

diagnostic-stem-delivery

它能做什么

这项技能使用带有时间码的编辑备注,引导 AI 修复音频项目。它适合需要经过诊断的修复和经过检查的最终导出的音频编辑人员。

适用场景

  • ✓当一份文档列出了音频中需要修复的问题时间码的时候。
  • ✓当我需要在编辑前,分析特定时刻的咔哒声或音高问题的时候。
  • ✓当我需要在交付前检查最终导出文件的时候。

技能链接

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced-enhanced/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced-enhanced/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请阅读我编辑备注中的时间码,检查这些位置的音频,并在导出前修复问题。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会从文档中提取时间码,分析每个位置的音频,规划时间安排,制作分轨,进行混音,并验证最终文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Diagnostic Stem Audio Production Workflow

This skill provides a resilient pattern for audio production that emphasizes diagnostic analysis before editing, explicit timecode extraction from documents, incremental verification, fail-fast principles, and mandatory deliverable verification. Each major step produces verified outputs before proceeding, with comprehensive audio diagnostics at specified timecodes.

Overview

Follow these steps in strict order. Each step must complete successfully and pass verification before proceeding to the next:

  1. Parse timecodes from source documents - Extract edit spots/timecodes from DOCX/text sources
  2. Perform diagnostic audio analysis - Analyze reference audio at each timecode (pitch, clicks, frequency)
  3. Calculate timing parameters - Derive section transitions from BPM and duration
  4. Verify reference audio - Validate input file properties and extract target duration
  5. Generate and verify each stem individually - One stem at a time with immediate verification
  6. Detect and resolve duration mismatches - Apply appropriate extension strategy
  7. Apply edits based on diagnostics - Make informed edits using analysis results
  8. Mix with verification - Combine stems and verify mix integrity
  9. Export and verify deliverable - Generate final output with comprehensive checks

Key Principles

  • Diagnostics first: Analyze audio at edit points BEFORE making any changes
  • Document-driven: Parse timecodes directly from source documents (DOCX, TXT)
  • Incremental verification: Verify each stem immediately after generation
  • Fail-fast approach: Stop and report errors at each step
  • Mandatory export: Final step MUST produce verified deliverable file
  • Tool reliability: Use run_shell with inline Python for audio processing (avoid execute_code_sandbox for audio)

Step 0: Parse Timecodes from Source Documents

Extract edit spots and timecodes from document sources. Use python-docx via run_shell for reliable DOCX parsing:

# Parse DOCX file for timecodes and edit spots
python3 -c "
from docx import Document
import re
import sys

doc_path = sys.argv[1] if len(sys.argv) > 1 else 'Bass Edit Spots.docx'
doc = Document(doc_path)

edit_spots = []
timecode_pattern = r'(\d{1,2}:?\d{2}:?\d{2}[.:\d]*)|(\d+[.:\d]+)s'

for para in doc.paragraphs:
    text = para.text.strip()
    if not text:
        continue
    
    # Look for timecodes in various formats
    matches = re.findall(timecode_pattern, text, re.IGNORECASE)
    if matches:
        for match in matches:
            timecode = match[0] if match[0] else match[1]
            if timecode:
                edit_spots.append({'timecode': timecode, 'context': text[:100]})
    
    # Also check tables
    for table in doc.tables:
        for row in table.rows:
            for cell in row.cells:
                cell_text = cell.text.strip()
                matches = re.findall(timecode_pattern, cell_text, re.IGNORECASE)
                for match in matches:
                    timecode = match[0] if match[0] else match[1]
                    if timecode:
                        edit_spots.append({'timecode': timecode, 'context': cell_text[:100]})

print(f'Found {len(edit_spots)} edit spots:')
for i, spot in enumerate(edit_spots, 1):
    print(f'{i}. {spot[\"timecode\"]} - {spot[\"context\"][:50]}...')
"

Step 1: Perform Diagnostic Audio Analysis at Timecodes

Before any editing, analyze the reference audio at each identified timecode:

import numpy as np
import soundfile as sf
import librosa

def analyze_audio_at_timecode(filepath, timecode_str, sample_rate=48000):
    """
    Perform comprehensive diagnostic analysis at a specific timecode.
    
    Returns dict with:
    - pitch_estimate: Dominant frequency/pitch
    - click_pop_score: Likelihood of clicks/pops (0-1, higher = more likely)
    - frequency_spectrum: Dominant frequency bands
    - amplitude: RMS amplitude at timecode
    - issues: List of detected issues
    """
    # Parse timecode to seconds
    timecode_str = timecode_str.replace(':', '.').strip()
    if 's' in timecode_str:
        timecode_str = timecode_str.replace('s', '')
    
    try:
        parts = timecode_str.split('.')
        if len(parts) == 3:
            seconds = int(parts[0]) * 3600 + int(parts[1]) * 60 + float(parts[2])
        elif len(parts) == 2:
            seconds = int(parts[0]) * 60 + float(parts[1])
   
常见问题

它能读取 Word 文件中的备注吗?

可以。该工作流程能从 DOCX 或纯文本文档中提取时间码。

它会自己修复每一个问题吗?

它会根据诊断结果进行编辑,并在每一步继续之前进行检查。

为什么要先分析再编辑?

先查看音频能显示真正的问题所在,因此编辑是基于证据进行的。

详情

作者的原始描述

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow

repo: HKUDS/AgentPilot

热度

GitHub 星标
7.8k
排名
#12839
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能