Communitygithub.com

cli-anything-audacity

一個用於音訊編輯的狀態化命令列介面,遵循與此儲存庫中 GIMP 和 Blender CLI 相同的模式。

cli-anything-audacity 是什麼?

這個技能提供了一個名為 cli-anything-audacity 的狀態化命令列介面 (CLI),用於程式化控制 Audacity 音訊編輯軟體。它支援建立、開啟、儲存和匯出專案,以及管理音軌、片段、效果、選取範圍和標籤。該 CLI 專為 AI 代理設計,支援 `--json` 輸出格式以取得結構化、可解析的回應,使其非常適合自動化音訊編輯工作流程。它還包含一個互動式 REPL 模式,支援自動補全、歷史記錄以及最多 50 層的復原/重做功能。此工具在 Python 3.10+ 和系統上已安裝 Audacity 的環境中運作,並提供清晰的文件,包含命令參考和範例。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-audacity

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

cli-anything-audacity 是做什麼的?

一個用於音訊編輯的狀態化命令列介面,遵循與此儲存庫中 GIMP 和 Blender CLI 相同的模式。

安裝

此 CLI 作為 cli-anything-audacity 套件的一部分安裝:

pip install cli-anything-audacity

先決條件:

  • Python 3.10+
  • 系統上必須安裝 audacity

使用方式

基本指令

# 顯示幫助
cli-anything-audacity --help

# 啟動互動式 REPL 模式
cli-anything-audacity

# 建立新專案
cli-anything-audacity project new -o project.json

# 使用 JSON 輸出執行(供代理使用)
cli-anything-audacity --json project info -p project.json

REPL 模式

當在沒有子指令的情況下呼叫時,CLI 會進入互動式 REPL 會話:

cli-anything-audacity
# 使用 Tab 自動補全和歷史記錄互動式輸入指令

指令群組

專案 (Project)

專案管理指令。

指令描述
new建立新專案
open開啟現有專案
save儲存目前專案
info顯示專案資訊
settings檢視或更新專案設定
json列印原始專案 JSON

音軌 (Track)

音軌管理指令。

指令描述
add新增音軌
remove依索引移除音軌
list列出所有音軌
set設定音軌屬性(名稱、靜音、獨奏、音量、聲相)

片段 (Clip)

片段管理指令。

指令描述
import探測/匯入音訊檔案(顯示元資料)
add將音訊片段新增至音軌
remove從音軌移除片段
trim修剪片段的起始和/或結尾
split在指定時間位置分割片段
move將片段移至新的開始時間
list列出音軌上的片段

效果 (Effect)

效果管理指令。

指令描述
list-available列出所有可用的效果
info顯示效果的詳細資訊
add將效果新增至音軌
remove依索引移除效果
set設定效果參數
list列出音軌上的效果

選取範圍 (Selection)

選取範圍管理指令。

指令描述
set設定選取範圍
all全選(整個專案時長)
none清除選取範圍
info顯示目前選取範圍

標籤 (Label)

標籤/標記管理指令。

指令描述
add在指定時間位置新增標籤
remove依索引移除標籤
list列出所有標籤

媒體 (Media)

媒體檔案操作。

指令描述
probe分析音訊檔案
check檢查所有引用的音訊檔案是否存在

匯出 (Export)

匯出/渲染指令。

指令描述
presets列出匯出預設集
preset-info顯示預設集詳細資訊
render將專案渲染為音訊檔案

會話 (Session)

會話管理指令。

指令描述
status顯示會話狀態
undo復原上一個操作
redo重做上一個復原的操作
history顯示復原歷史記錄

範例

建立新專案

建立一個新的 audacity 專案檔案。

cli-anything-audacity project new -o myproject.json
# 或使用 JSON 輸出以進行程式化使用
cli-anything-audacity --json project new -o myproject.json

互動式 REPL 會話

啟動一個支援復原/重做的互動式會話。

cli-anything-audacity
# 互動式輸入指令
# 使用 'help' 檢視可用指令
# 使用 'undo' 和 'redo' 進行歷史導航

匯出專案

將專案匯出為最終輸出格式。

cli-anything-audacity --project myproject.json export render output.pdf --overwrite

狀態管理

CLI 維護會話狀態,包含:

  • 復原/重做:最多 50 層的歷史記錄
  • 專案持久化:將專案狀態儲存/載入為 JSON
  • 會話追蹤:追蹤修改和變更

輸出格式

所有指令都支援雙重輸出模式:

  • 人類可讀(預設):表格、色彩、格式化文字
  • 機器可讀(--json 標誌):結構化 JSON,供代理使用
# 人類輸出
cli-anything-audacity project info -p project.json

# JSON 輸出(供代理使用)
cli-anything-audacity --json project info -p project.json

給 AI 代理的建議

以程式化方式使用此 CLI 時:

  1. 始終使用 --json 標誌 以取得可解析的輸出
  2. 檢查回傳碼 - 0 表示成功,非零表示錯誤
  3. 解析 stderr 以取得失敗時的錯誤訊息
  4. 對所有檔案操作使用絕對路徑
  5. 在匯出操作後驗證輸出是否存在

更多資訊

  • 完整文件:請參閱套件中的 README.md
  • 測試覆蓋率:請參閱套件中的 TEST.md
  • 方法論:請參閱 cli-anything-plugin 中的 HARNESS.md

版本

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

相關技能