在本文中
Today we’re launching the Sonix 命令行界面 — a free, fast command-line tool that puts the entire Sonix workflow at your fingertips. Upload media, pull transcripts, run translations and summaries, and manage your account, all from short commands you can run by hand, drop into a script, or wire into CI. It’s the whole Sonix API, wrapped in a single tool called 声波.
最棒的一点是上手非常简单。只需安装一次,三行命令就能将原始录音处理成存储在磁盘上的成品字幕:
npm install -g @sonix-ai/cli
sonix config set api-key sk_live_xxxxxxxx
sonix media create ./interview.mp3 --language en --wait
sonix transcript get --format srt > captions.srtThat’s an upload, a transcription, and finished SRT subtitles on disk — no glue code.
功能介绍
在幕后,, 声波 处理了所有原本需要你通过原始 API 自行实现的功能:
- 上传任何内容。. Small files take a fast one-shot path; large ones (we’ve tested multi-gigabyte) upload directly and reliably, with each piece retried independently so a flaky connection won’t sink a 5 GB file. You don’t have to think about which path you’re on —
sonix media create ./big-recording.mov就是能用。. - 获取任何格式的成绩单 — 纯文本、SRT、VTT、JSON 或 Avid DS — 直接流式传输到文件或您的终端。.
- 运行您已使用的 AI 功能 — 翻译、字幕烧录、一键生成摘要以及对整个文件夹进行批量摘要生成。.
- 管理您的账户 — 文件夹、团队成员和共享链接,均可通过脚本操作。.
- 等慢的那些。. 添加
--请稍等to any job and the CLI blocks until it’s done, then prints the result. No more hand-rolled polling loops.
一切设计都基于管道机制。结果输出到标准输出,诊断信息输出到标准错误,并且 --json 可为您提供任何命令的原始 API 响应——因此 sonix media list --json | jq 和 sonix 转录文件获取 … > 文件 保持整洁。完整的命令和参数参考位于 Sonix CLI 文档.
同样专为人工智能代理而设计
The CLI has a second audience: AI coding agents like Claude Code or Codex. Instead of loading a big tool schema into the model’s context, an agent can shell out to 声波 — 一条简单的命令,一个干净的退出代码,搞定。.
sonix agent-context # 通过一次调用将整个命令界面以 JSON 格式返回
sonix setup claude # 安装一个用于 Claude Code 的现成技能 SonixIf you’d rather have your assistant reach into Sonix 像聊天一样 — “find my interview with Dr. Patel and pull the three biggest takeaways” — that’s what our MCP 服务器 的用途。命令行界面(CLI)则是这一故事的另一半:当你(或某个代理)希望在管道中使用可信赖的、确定性的、可脚本化的命令时,它便派上用场。.
人们使用它的几种方式
- 一位研究人员指出
sonix media create位于一个文件夹中 面试 并让脚本在夜间上传并转录整个批次。. - 播客团队会将生成新的SRT文件作为每个新剧集的构建步骤,无需手动点击。.
- 开发人员无需编写任何 HTTP 代码,即可将 Sonix 集成到现有的媒体管道中。.
- 一个人工智能代理上传一段录音,等待转录文本生成,然后对其进行总结——所有操作均通过shell命令完成。.
开始使用
Sonix CLI 是免费的开源软件(MIT 许可证),可在 Node 20 及以上版本上运行,安装只需几秒钟:
npm install -g @sonix-ai/cli
# 或者,无需安装:
npx @sonix-ai/cli media list请从以下位置获取您的 API 密钥: my.sonix.ai/api, 运行 sonix config set api-key, and you’re off. The full command and flag reference lives in 我们的 CLI 文档,以及 sonix --help 只需按一下键即可。.
We’re excited to see what you automate with it. As always, 给我们发个消息 if you’ve got feedback, hit a snag, or want to tell us what you’d love to see next.