Skip to main content

stacks-audio

Use when planning native audio derivatives, processing supported audio formats, generating waveforms/transcripts, or signing audio delivery. Covers @stacksjs/audio and runtime encoder capability checks.

来源信息

仓库
stacksjs/stacks
最近来源活动
2026年10月10日 17:01
检测到的 SKILL.md 语言
英语
星标
636
Forks
20

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
stacks-audio
description
Use when planning native audio derivatives, processing supported audio formats, generating waveforms/transcripts, or signing audio delivery. Covers @stacksjs/audio and runtime encoder capability checks.
license
MIT
compatibility
Bun >= 1.3.0, TypeScript
allowed-tools
Read Edit Write Bash Grep Glob
# Native audio planning and delivery audio(source) builds a profile-driven delivery plan. Supply an inspected AudioProfile and actual runtime encoder/codec capabilities. A declared output does not prove that an encoder is available. ## Plan versus process generate() returns the plan, including copy/transcode actions and availability. assertAudioPlanExecutable rejects an unavailable encoding path. process() or processAudioPlan delegates executable work to the installed native-transcode implementation. Do not report a generated plan as finished media bytes. Content type, format and source characteristics determine bitrate/output selection. negotiateAudioOutput handles accept preferences. createWaveform and normalizeTranscript build waveform data and transcript/VTT output from supplied samples/segments; they do not infer spoken text from an audio file themselves. audioResponseHeaders supports delivery caching; signAudioAsset/verifyAudioAsset and createProtectedAudioPlaylist support protected delivery. Preserve expiration, path and key handling; a protected playlist still needs an authorized key route. Tests prove planning, capability rejection, helpers and delegated processing. The processing test mocks the transcoder, so it is not evidence that every codec works on every host. Verify the real target runtime when producing assets. Source: core/audio/src/index.ts. Evidence: audio.test.ts and process.test.ts.
在 GitHub 查看