Chuyển đến nội dung
Skillpedia
Âm thanh và giọng nói7.8k · #12839

diagnostic-stem-delivery

Skill này làm gì

Skill này hướng dẫn AI sửa một dự án âm thanh dựa trên ghi chú chỉnh sửa có mốc thời gian. Dành cho biên tập viên âm thanh cần các bản sửa đã được chẩn đoán và bản xuất cuối đã kiểm tra.

Khi nào nên dùng

  • ✓Khi một tài liệu liệt kê các mốc thời gian có lỗi âm thanh cần sửa.
  • ✓Khi tôi cần phân tích tiếng click hoặc lỗi cao độ tại những thời điểm cụ thể trước khi chỉnh sửa.
  • ✓Khi tôi cần kiểm tra bản xuất cuối trước khi giao.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/audio-track-production-enhanced-enhanced-enhanced/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy đọc các mốc thời gian trong ghi chú chỉnh sửa của tôi, kiểm tra âm thanh tại các điểm đó và sửa lỗi trước khi xuất.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI lấy các mốc thời gian từ tài liệu, phân tích âm thanh tại từng điểm, lên kế hoạch thời gian, tạo các stem, trộn chúng và xác minh tệp cuối.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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])
   
Câu hỏi thường gặp

Có đọc được ghi chú trong tệp Word không?

Có. Quy trình trích xuất mốc thời gian từ tài liệu DOCX hoặc văn bản thuần.

Nó có tự sửa mọi vấn đề không?

Nó thực hiện chỉnh sửa dựa trên kết quả chẩn đoán và kiểm tra từng bước trước khi đi tiếp.

Vì sao phải phân tích trước khi chỉnh sửa?

Nhìn vào âm thanh trước cho thấy đúng lỗi là gì, nên các chỉnh sửa dựa trên bằng chứng.

Chi tiết

Mô tả gốc của tác giả

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

repo: HKUDS/AgentPilot

Độ phổ biến

Sao GitHub
7.8k
Vị trí xếp hạng
#12839
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự