@fonoster/amd

中文文档
0.61.0发布于 2026/11/15MITTypeScriptCommonJS构建来源已验证近 30 天下载 7422

Answering-machine-detection model (ONNX) used by AppBridge

原始使用文档

amd

Answering-machine detection for Fonoster. An ONNX whisper-tiny classifier reads the first seconds of a call's audio and returns a status (HUMAN, MACHINE, VOICEMAIL, IVR or UNKNOWN), a confidence, the detector name and the latency.

AppBridge loads it for the amd listener: it attaches a listen-only participant to the room, collects the caller's audio (16 kHz L16) and calls classifyPcm. The model ships with the package in amd-model/.

import { classifyPcm } from "@fonoster/amd";

const verdict = await classifyPcm(pcm);

Regression corpus

test/fixtures/regression/ is a permanently-stored, correctly-licensed corpus of 21 audio clips (each 5s or longer) covering all four classifier labels — 11 human (10 real conversational clips from PolyAI/MINDS-14, CC BY 4.0, plus one scripted-narration edge case), 3 voicemail and 1 answering- machine clip (real, CC0, from Freesound), and 2 answering-machine + 4 IVR clips synthesized in-house (no real-world recording with a clean license turned up for those two categories). manifest.json pins each clip's current classifier output (knownStatus/knownConfidence), which test/amd/regression.test.ts asserts against on every run — the goal is catching a silent behavior change (model swap, feature-extractor edit, dependency bump) rather than measuring accuracy. Where the pinned baseline disagrees with the file's real-world label (groundTruthLabel), that's a documented known accuracy gap, not a test bug — see each entry's note; a few exist on purpose, to track known confusions (e.g. formal/synthesized IVR scripts reading as MACHINE) rather than hide them. Licensing and attribution for every third-party clip is in test/fixtures/regression/ATTRIBUTION.md.

版本与发布记录

@fonoster/amd 共发布 46 个版本,首次发布于 2026/09/13;过去 12 个月发布了 46 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.61.0latest2026/11/15今天
0.60.02026/11/151 天前
0.59.02026/11/141 天前
0.58.02026/11/141 天前
0.57.02026/11/114 天前
0.56.02026/11/114 天前

关于 @fonoster/amd 的常见问题

@fonoster/amd 是什么?

Answering-machine-detection model (ONNX) used by AppBridge

如何安装 @fonoster/amd?

在项目目录运行 npm install @fonoster/amd,或使用 pnpm add / yarn add / bun add。

@fonoster/amd 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fonoster/amd 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@fonoster/amd 可以商用吗?

@fonoster/amd 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@fonoster/amd 的下载量有多少?

根据 npm 官方下载统计,@fonoster/amd 在 2026/10/15 – 2026/11/13 这 30 天内被下载 7,422 次,日均约 247 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fonoster/amd 还在维护吗?

最新版本 0.61.0 发布于 2026/11/15(今天);至今共发布 46 个版本,其中过去 12 个月发布了 46 个;首次发布于 2026/09/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。