Skip to content

Add ace-understand: analyze audio via local path or URL, dogfood in CI#14

Merged
lmangani merged 7 commits intomainfrom
copilot/add-ace-understand-action
Mar 14, 2026
Merged

Add ace-understand: analyze audio via local path or URL, dogfood in CI#14
lmangani merged 7 commits intomainfrom
copilot/add-ace-understand-action

Conversation

Copy link
Contributor

Copilot AI commented Mar 14, 2026

Extends the action with a reverse-pipeline mode using ace-understand — given an audio file, the action extracts caption, lyrics, BPM, key, duration, and language as JSON. The understand input accepts either a local file path (used directly) or a URL (http/https/ftp/file://, downloaded via curl).

Action interface

  • New understand input (string, default empty) — activates understand mode, skips generation
  • New understand_result output — multiline JSON from ace-understand

Entrypoint (src/entrypoint.sh)

  • Early-exit branch when INPUT_UNDERSTAND is set; detects URL vs local path via scheme prefix
  • Local path: validated (exists + non-empty), passed directly to --src-audio
  • URL: downloaded with curl -fsSL --max-time 300, validated, then passed to --src-audio
  • Output written to $GITHUB_OUTPUT using a bash-native heredoc delimiter ($$_${RANDOM})

Dockerfile

  • Fixes typo ace-undestandace-understand (binary was never being copied)
  • Adds curl to apt dependencies

CI (test.yml)

  • test-understand job depends on test (needs: test), downloads the generated WAV artifact into $GITHUB_WORKSPACE, and passes the container-side path /github/workspace/output.wav directly — no external audio, no file:// workaround
  • Validates output is valid JSON with caption, lyrics, and bpm fields

Usage

# From a URL
- uses: audiohacking/acestep-action@main
  with:
    understand: 'https://example.com/song.mp3'

# From a local path (e.g. file already in the container workspace)
- uses: audiohacking/acestep-action@main
  with:
    understand: '/github/workspace/output.wav'

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title [WIP] Add action to run ace-understand for audio analysis Add ace-understand mode: analyze audio URLs and return structured JSON metadata Mar 14, 2026
Copilot AI requested a review from lmangani March 14, 2026 16:01
Copilot AI and others added 2 commits March 14, 2026 16:04
Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
…io directly

Co-authored-by: lmangani <1423657+lmangani@users.noreply.github.com>
Copilot AI changed the title Add ace-understand mode: analyze audio URLs and return structured JSON metadata Add ace-understand: analyze audio via local path or URL, dogfood in CI Mar 14, 2026
@lmangani lmangani marked this pull request as ready for review March 14, 2026 16:39
@lmangani lmangani merged commit b8b4d4e into main Mar 14, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants