
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Automatic Speech Recognitio (ASR) 录音转写多平台通用 SDK.
ifasr_new: 科大讯飞 录音文件转写 标准版ifasr_llm: 科大讯飞 录音文件转写 大模型npm i -g asrm
使用 CLI 前, 请确认 ffmpeg 已经安装在 PATH 中.
asrm --provider=ifasr_new <filepath>
asrm --provider=ifasr_new task <id>
环境变量:
XFYUN_APP_ID: 应用 IDXFYUN_IFASR_NEW_SECRET_KEY: SecretKeyasrm --provider=ifasr_llm <filepath>
asrm --provider=ifasr_new task <id> --signature=<signature>
环境变量:
XFYUN_APP_ID: 应用 IDXFYUN_IFASR_LLM_KEY_ID: API KeyXFYUN_IFASR_LLM_KEY_SECRET: API Secretimport { AsrClient, Provider } from 'asrm';
// 1. 指定 provider
const provider = 'ifasr_new' // or 'ifasr_llm', ...
// 2. 初始化 client, 配置所有相关 secret, 配置所有默认配置
const client = new AsrClient(
provider,
{
[Provider.ifasr_new]: {
appId: process.env.XFYUN_APP_ID!,
secretKey: process.env.XFYUN_IFASR_NEW_SECRET_KEY!
},
[Provider.ifasr_llm]: {
appId: process.env.XFYUN_APP_ID!,
accessKeyId: process.env.XFYUN_IFASR_LLM_KEY_ID!,
accessKeySecret: process.env.XFYUN_IFASR_LLM_KEY_SECRET!
}
},
{
upload: {
[Provider.ifasr_new]: {},
[Provider.ifasr_llm]: {}
},
recognize: {
[Provider.ifasr_new]: {
language: options.language || 'cn',
roleType: 1,
roleNum: 0
},
[Provider.ifasr_llm]: {
language: options.language || 'autodialect'
}
}
}
);
// 3. 创建 ASR 任务
const task = client.createTask()
// 4. 开始转写
await client.recognize({
file: {
name: '',
data: <...>,
size: <...>,
duration: <...>
}
})
// 5. 轮询结果
await client.getStatus()
恢复任务状态.
const client = new AsrClient(...)
const task = client.createTask()
task.id = '...'
task.signature = '...'
await task.getStatus()
MIT License © 2025 XLor
FAQs
Unify Automatic Speech Recognitio (ASR) SDK / 通用语音转写 SDK
We found that asrm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.