Repository navigation
feat: add audio transcription tool - #1538
Merged
Merged
Conversation
Add OpenSpec proposal, design, spec, and tasks for the transcribeAudio tool. Closes #1516
Add transcribeAudio tool with hybrid OpenAI/local Whisper backend, sandbox path validation, and registration. Includes unit and integration tests.
Archive the OpenSpec change and sync the audio-transcription spec.
Owner
Author
Implementation Audit: audio-transcription-toolGoal Fulfillment
Spec Compliance
Task Completion
Quality Check
VerdictAll goals fulfilled, spec-compliant, tasks complete, no quality issues. No errors found. |
avoidwork
enabled auto-merge (squash)
October 25, 2026 23:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a
transcribeAudiotool that converts audio files (voice memos, meeting recordings, podcasts) to text, closing the input-side gap in madz's media toolset. The tool uses a hybrid backend: the OpenAIaudio/transcriptionsendpoint when an API key is present, and a local Whisper pipeline via@xenova/transformersotherwise. The path is validated against the sandbox allowlist and size-capped viacheckFileLimit.Type of Change
Testing
tests/unit/tools/audio.test.js): 12 tests covering schema validation (missing path, invalid path, unsupported extension, empty file, file outside sandbox allowlist, very large file), the API path (success + failure), and the local Whisper path (success, language/prompt passthrough, failure).tests/integration/tools/audio.test.js): 2 tests covering a WAV fixture via the local backend and the API backend.Coverage
Checklist
npm run lintpassesCloses #1516