Agent-Ear: Giving Text-Only Agents a Pair of Offline Ears

Introduction

Most agents on DeepSeek Harness (DSH) are text-only channels: they can read files and write code but cannot directly “listen” to an mp4 or podcast. Some dump the entire audio/video into a multimodal API for Q&A, but “understanding the content” is not the same as “being able to edit with precision on a time axis”—batch follow-ups, auditable transcripts, and exporting SRT/EDL often require a layer of structured time information.

The positioning of agent-ear is to offline process already recorded audio/video files, compile them into audio-score.json on the same timeline, and organize them into hierarchical, timestamped hearing.md for any text model to read, without requiring the model itself to support audio. Below is an introduction to the plugin’s origin, capabilities, and installation/usage in DSH.

What is this

  • Plugin Name: agent-ear (directory identifier hudsonhuang/agent-ear)
  • Maintainer: HudsonHuang
  • Category: Model Inference (SkillHub in Community Directory)
  • Current Version: v0.2.10 (README indicates PyPI + GitHub released)
  • License: MIT

In short: compile audio/video into an offline “hearing scoreboard” with 40ms-level event boundaries (precise mode), word-level transcription, and fields like BPM/downbeat and cut-point deviation, then export it for humans or Agents to read; it complements real-time dialogue capabilities—if real-time dialogue and barge-in during speech are needed, the maintainer points to the companion project dsh-moss-live.

Core Functions

Outputs

After processing, it defaults to the .ear/<name>-<hash>/ directory, mainly including:

  • audio-score.json: Single source of truth (speech / events / music / relations / timeline, etc.) with schema validation
  • hearing.md: Hierarchical Markdown (overview, chapters, music, event index, limitations)
  • context.md: Complete context for text LMs; agent-ear ask --score can reuse this directly without calling Omni again
  • Optional compression and wav intermediate files in work/

Working Modes

Mode Purpose Time Precision Dependencies
basic (default) Detailed transcription, summary, rough cut 0.5–2s Qwen API
precise Subtitles, alignment, beat grid, precise cut Word-level + 40ms events Qwen + local extension models
music Music description + beat grid BPM/beats Qwen + local extension
privacy No cloud upload Local Local extension (README notes MOSS is not yet implemented)

Strong Dependency Explanation (Original Text): basic / ask / precise / music all depend on qwen3.8-omni-flash; without an Omni API Key and network, only privacy local fallback is available. Precise also additionally depends on Qwen ASR. The basic mode calls DashScope via a compatible HTTPS interface; the README states that dashscope SDK is not bundled with the package.

Difference from “Asking Omni Directly”

The README honestly compares: on 180 QA pairs, asking Omni directly is about 87.2%, while agent-ear’s QA is about 58.9%—it is not a QA champion. The increment lies in 40ms event boundaries, word-level timing, BPM/downbeat, cut-point deviation, etc., which are structured data directly usable for editing; for a single question where the answer is immediate, you can ask Omni directly; for multiple questions, batch processing, or auditable timelines, it is better to listen first to transcribe.

Editing and Exporting

Supports exporting SRT and EDL from a saved score, filtering highlights by tags, as well as commands like mixcheck, compare, etc. (see the “Quick Start” section of the README for details).

Installing and Enabling in DSH

The DSH ecosystem philosophy is “Everything is a Plugin”; the community directory SkillHub (https://www.skillhub.cn/plugins/HudsonHuang/agent-ear) is an independent site with no official affiliation to DeepSeek / Hyperscience.

Important Division of Labor: dsh plugin add agent-ear installs a bundle (containing dsh.bundle.patch), and the skill appears in the DSH skills directory; CLI still needs separate installation. The scripts/agent-ear inside the Skill is just a thin wrapper that executes the agent-ear in PATH; if you only have the Skill and no CLI, agent-ear doctor will mark NO-CLI.

Recommended order: Install CLI first, then install DSH plugin and run setup.

dsh plugin add agent-ear
uv tool install agent-ear
agent-ear setup --target dsh

You can also use the npm one-liner installer (which handles CLI, ffmpeg, Skill selection, etc.):

npx -y agent-ear@latest setup

macOS / Linux can also use install.sh as per the README, or:

uv tool install "agent-ear"
agent-ear setup

agent-ear setup checks ffmpeg, configures the Qwen API Key (can also be environment variable DASHSCOPE_API_KEY), selects targets like Codex / DSH / Claude Code, and writes to ~/.config/agent-ear/config.json (Windows: %APPDATA%\agent-ear\config.json).

After installation, the DSH Skill default path is $DSH_HOME/skills/agent-ear (default ~/.dsh/skills/agent-ear). Visible in new sessions; the Skill invokes the CLI via scripts/agent-ear.

Advice before enabling: The plugin runs with the permissions of the current DSH process; before installing, you should review the GitHub source code and the MIT license yourself, and be aware that the cloud mode uploads audio/video content to Qwen (privacy is the no-upload path; see README for capability boundaries).

Typical Usage

The commands below are all taken from the official README and can replace input files and output directories as needed.

Q&A (One Omni call, returns analysis + answer):

agent-ear ask input.mp4 "What happened in this audio?"

Detailed transcription (basic):

agent-ear listen input.mp4 --mode basic --out .ear/my-video

Precise mode (word-level ASR + 40ms events + beat grid):

agent-ear listen input.mp4 --mode precise --need transcript,events,beat --out .ear/my-video-precise

Follow-up on existing transcript, no need to re-call Omni:

agent-ear ask --score .ear/my-video "Who laughed when?"

Export and read results:

agent-ear export .ear/my-video --format srt
cat .ear/my-video/hearing.md
agent-ear digest .ear/my-video/audio-score.json --level 1

Diagnosis and configuration:

agent-ear doctor --json
agent-ear config show

Applicable Scenarios and Notes

Who is it for

  • Need to let text Agents in DSH workflow read “timestamped hearing summaries” for summarization, indexing, or multi-turn Q&A
  • Post-production of audio/video: rough cut (basic) or subtitles/beat grid/precise cut (precise), with SRT/EDL export
  • Long footage targeting natural language layers only (e.g., --request "cut out all laughs in the video")

Boundaries and Limitations (Original Text)

  • Only does offline files; no real-time streams, Live Translation, spatial audio, voiceprint identity, or complete music scores
  • Basic timestamps are 0.5–2s, cannot align precisely; use precise for precise alignment
  • Precise event refine currently mainly covers mappable tags (e.g., Laughter); open tags might still be omni-coarse
  • privacy’s MOSS is not yet implemented; capabilities are limited without an Omni Key
  • npm package engines requires Node >=22.19.0 (see package.json)

Conclusion

agent-ear extracts the time structure needed for “editing” from the instantaneous Q&A of the multimodal API, solidifies it into reusable audio-score.json and hearing.md, and then connects it to the harness session via the DSH Skill. For single question-answer pairs, you can still prefer direct ask; for batches, editing, and auditable timelines, it is more suitable to listen first and then follow up.

  • Community directory: https://www.skillhub.cn/plugins/HudsonHuang/agent-ear
  • Source code and full documentation: https://github.com/HudsonHuang/agent-ear
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye