openai-whisper-api
通过 OpenAI 音频转录 API (Whisper) 转录音频。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~mohdalhashemi98-hue-mh-openai-whisper-apicURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~mohdalhashemi98-hue-mh-openai-whisper-api/file -o mohdalhashemi98-hue-mh-openai-whisper-api.md# OpenAI Whisper API (curl)
Transcribe an audio file via OpenAI’s `/v1/audio/transcriptions` endpoint.
## Quick start
```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
```
Defaults:
- Model: `whisper-1`
- Output: `<input>.txt`
## Useful flags
```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1 --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
```
## API key
Set `OPENAI_API_KEY`, or configure it in `~/.openclaw/openclaw.json`:
```json5
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}
```
---
## 中文说明
# OpenAI Whisper API (curl)
通过 OpenAI 的 `/v1/audio/transcriptions` 端点转录音频文件。
## 快速开始
```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
```
默认值:
- 模型:`whisper-1`
- 输出:`<input>.txt`
## 实用标志
```bash
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --model whisper-1 --out /tmp/transcript.txt
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --language en
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --prompt "Speaker names: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
```
## API 密钥
设置 `OPENAI_API_KEY`,或在 `~/.openclaw/openclaw.json` 中配置它:
```json5
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}
```