Audio Productionのロゴ

Audio Production

コミュニティ
mphinance
audio-production

Transcribe, surgically edit, master, and clean audio recordings (trading streams, community calls, podcasts, meetings) with automated silence/fluff trimming, noise reduction, loudness normalization (-16 LUFS), and transcription via OpenRouter mai-transcribe-2 or local faster-whisper. Always consolidate output into a single dedicated folder.

概要

公開者mphinance
リポジトリalpha-skills
スキル名audio-production
スター
32
フォーク
6
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mphinanceがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Audio Production」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mphinance/alpha-skills/tree/main/skills/audio-production
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mphinance/alpha-skills.git /tmp/alpha-skills
mkdir -p .claude/skills
cp -r /tmp/alpha-skills/skills/audio-production .claude/skills/audio-production
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAudio Productionを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAudio Productionを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Audio Productionは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Audio Production & Mastering Skill

A complete pipeline for transcribing, editing, mastering, and bundling spoken audio for Substack podcasts, YouTube replays, community calls, and dev logs.

When to Use

  • Transcribing audio files (.mp3, .wav, .m4a, .webm) into clean Markdown with timestamps and speaker labels.
  • Analyzing an unedited recording for dead air, mic feedback, sensitive disclosures, or rambling.
  • Performing surgical cuts with smooth crossfades (acrossfade) so transitions sound completely natural.
  • Mastering audio to broadcast/podcast standard (-16 LUFS, 80Hz highpass filter, adaptive noise suppression).
  • Packaging deliverables: Always consolidate the cleaned audio and structured markdown transcript into a single unified directory (e.g. clean_session/ or dist/audio/).

🎙️ Transcription Engines

1. Cloud STT: OpenRouter microsoft/mai-transcribe-2

  • Cost/Speed: ~$0.10/hr (half the price of Whisper Large v3 Turbo), 10x faster on long-form audio.
  • Key Location: ~/projects/openrouter/.env_openrouter or $OPENROUTER_API_KEY.
  • Endpoint: https://openrouter.ai/api/v1/audio/transcriptions
  • 25MB request cap, handled automatically. OpenRouter's own docs cap a single transcription request at 25MB. A single transcribe_openrouter() call over that size will fail outright -- use transcribe_long_openrouter() for anything that might be long, which splits by measured bitrate (not a fixed duration guess, since a 32kbps voice memo and a 320kbps studio recording need very different chunk lengths to land under the same byte cap), transcribes each piece, and stitches the timestamps back onto the original file's timeline. Verified 2026-09-15 against a real 57-minute / 110MB / 257kbps file: 558 segments, zero backward-jumping timestamps across chunk boundaries, last segment's end time matched the file's true duration to five decimal places, transcribed in 64 seconds for about $0.10.
    python
    from audio_pipeline import transcribe_long_openrouter
    result = transcribe_long_openrouter("recording.m4a")  # any length, any size
    # result = {"text": "...", "segments": [{"start": 0.0, "end": 7.56, "text": "..."}, ...]}
    Or from the CLI: python3 audio_pipeline.py -i recording.m4a --transcribe out.json. Only reach for the unwrapped transcribe_openrouter() directly when the input is already known to be under 15MB (its internal safety margin below the 25MB cap).

2. Local Fallback: faster-whisper

  • Runs directly on CPU/GPU using CTranslate2 int8 quantization, no size cap of its own (handles long files directly, no chunking wrapper needed).
    python
    from audio_pipeline import transcribe_whisper_local
    result = transcribe_whisper_local("audio.mp3", model_size="base.en")
    # same {"text", "segments"} shape as the OpenRouter path

✂️ The Editorial Framework: What to Cut

When reviewing raw streams or community calls, audit for:

  1. 🚨 Liability & Sensitive Disclosures (Hard Cut if Public):
    • Day-job / employer admissions (e.g., coworkers/partners confessing low work hours).
    • Regulatory edge cases (Series 65/FINRA compliance disclaimers, unauthorized advice).
  2. 🔇 Tech Fumbling & Setup Chaos:
    • Audio feedback, Discord echo, mic permission loops, teaching someone how to server-mute.
    • Start the final cut right where the real substance or opening thesis begins.
  3. ⏸️ Dead Air & Screen Waiting:
    • Multi-second pauses waiting for market open, staring at phones, or frozen screens.
  4. ⚠️ Self-Deprecating Fluffs & Missing Code:
    • Rambling about missing git commits, lost branches, or personal cursing over forgotten UI buttons.
    • If producing for a Public Cut, snip cleanly. If producing for a Private Community Cut, keep authentic moments but tighten pauses.

✂️ Doing the Cut: --remove vs --cuts

cut_and_master() (and the --cuts CLI flag) always take KEEP segments -- that's what ffmpeg needs, but it's the wrong shape to reason about when auditing a transcript for what's bad or too personal. Use --remove instead: name the ranges you want gone, and invert_segments() computes the keep-segments around them automatically (sorts unsorted input, handles removals touching the very start/end, verified with unit tests 2026-09-15). This is the natural fit for the editorial framework above -- read the timestamped transcript, list the [start, end] ranges that match the Hard Cut / Tech Fumbling / Dead Air / Fluff criteria, pass them to --remove, done.

bash
python3 audio_pipeline.py -i recording.m4a \
  --remove '[[612, 649], [1830, 1905]]' \
  -o recording_clean.mp3

🎚️ The Mastering Chain (FFmpeg)

Always apply broadcast mastering to eliminate whisper-to-shout volume swings:

bash
# 1. High-Pass Filter: Strip mic bumps and AC rumble below 80Hz
# 2. Adaptive Noise Reduction: afftdn=nf=-25
# 3. EBU R128 Podcast Loudness: loudnorm=I=-16:TP=-1.5:LRA=11
ffmpeg -i input.mp3 \
  -filter:a "highpass=f=80,afftdn=nf=-25,loudnorm=I=-16:TP=-1.5:LRA=11" \
  -c:a libmp3lame -b:a 192k output_mastered.mp3

Seam Crossfading

Never hard-cut audio without a transition. Use a 200ms triangular crossfade (acrossfade=d=0.2:c1=tri:c2=tri) between all segments to prevent clicks and room-tone dropouts.


📦 Deliverables Rule: Single Output Folder

Whenever producing cleaned audio and transcripts, never scatter files across root or subdirectories. Always package them together in one dedicated folder:

text
clean_session/
├── Session_Clean_Public.mp3                 # Mastered broadcast audio
└── 2026-09-15_Community_Session_Transcript.md # Formatted Markdown transcript

The Markdown transcript should contain:

  • Executive Summary
  • Action Items & Dev Bug Log (harvested from stream)
  • Full Timestamped Dialogue with Speaker Tags

Default destination for Michael's own recordings

For personal audio (podcasts, voice memos, dev streams -- not a one-off scratch job), the real, established location is ~/projects/tdpro/mphinance/transcripts/, matching the file already there (2026-09-15_Community_Session_Transcript.md) -- same naming convention: YYYY-MM-DD_Descriptive_Name_Transcript.md. This isn't just a transcript archive: it's raw material for two other things in the same project -- VOICE.md (the writing-style guide, itself mined from "the pre-AI AfterHour corpus") gets more authentic material to draw from out of how Michael actually talks, not just what he's already published, and a cleaned transcript is a legitimate first draft for a Substack post when he asks for one -- run it past VOICE.md's rules (banned phrases, the sign-off, the tone rules) rather than treating the raw transcript as publishable as-is.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Audio Production」では何ができますか?

Transcribe, surgically edit, master, and clean audio recordings (trading streams, community calls, podcasts, meetings) with automated silence/fluff trimming, noise reduction, loudness normalization (-16 LUFS), and transcription via OpenRouter mai-transcribe-2 or local faster-whisper. Always consolidate output into a single dedicated folder.

TypingMindでAudio Productionを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Audio Productionはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAudio Productionをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mphinance/alpha-skills/tree/main/skills/audio-productionを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Audio Productionを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Audio Productionで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAudio Productionを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Audio Production」は無料ですか?

はい。mphinanceがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇