介绍
# Speech is Cheap (SIC) Skill
快速、准确且极其廉价的自动语音转文字转录服务。
## 🚀 为什么要使用此技能? - **颠覆性定价:** 每小时 $0.06 - $0.12(比 Deepgram 或 OpenAI 便宜 2-15 倍)。 - **极速处理:** 100 分钟的音频约在 1 分钟内转录完成。 - **多语言支持:** 支持 100 种语言并具有自动检测功能。 - **就绪于代理:** 专为高容量、自动化流水线设计。
## 🛠 设置
### 1. 获取 API Key 在 [speechischeap.com](https://speechischeap.com) 注册。使用代码 `CH5` 可减免 $5。
### 2. 配置身份验证 此技能会在 `SIC_API_KEY` 环境变量中查找您的 API 密钥。
将以下内容添加到您的 `.env` 或代理配置中: ```bash SIC_API_KEY=your_key_here ```
## 📖 用法 ### 🤖 代理快速指南 安装此技能后,您可以从 OpenClaw 会话中转录任何 URL,并通过运行以下命令立即获取 JSON 结果: `./skills/asr/scripts/asr.sh transcribe --url "https://example.com/audio.mp3"`
### 转录 URL ```bash # Basic transcription ./skills/asr/scripts/asr.sh transcribe --url "https://example.com/audio.mp3"
# Advanced transcription with options ./skills/asr/scripts/asr.sh transcribe --url "https://example.com/audio.mp3" \ --speakers --words --labels \ --language "en" \ --format "srt" \ --private ```
### 转录本地文件 非常适合处理磁盘上已有的音频。该工具会自动处理上传。 ```bash # Upload and transcribe local media ./skills/asr/scripts/asr.sh transcribe --file "./local-audio.wav"
# Upload with webhook callback ./skills/asr/scripts/asr.sh transcribe --file "./local-audio.wav" --webhook "https://mysite.com/callback"
# Note: For local files, the skill handles the multi-part upload to # https://upload.speechischeap.com before starting the transcription. ```
### 支持的选项 - `--speakers`:启用说话人分离(Diarization) - `--words`:启用词级时间戳 - `--labels`:启用音频标签(音乐、噪声等) - `--stream`:启用流式输出 - `--private`:不存储音频/转录文本(隐私模式) - `--language <code>`:ISO 语言代码(例如 'en', 'es') - `--confidence <float>`:最低置信度阈值(默认 0.5) - `--format <fmt>`:输出格式(json, srt, vtt, webvtt) - `--webhook <url>`:接收任务完成负载的 URL - `--segment-duration <n>`:分段时长,单位秒(默认 30)
### 检查任务状态 ```bash ./skills/asr/scripts/asr.sh status "job-id-here" ```
## 🤖 代理相关 `asr.sh` 命令行工具在成功时默认返回 JSON,便于将其通过管道传递给其他工具或直接解析。
如果缺少 `SIC_API_KEY`,该工具将提供清晰的错误消息和直接指向注册页面的链接。