ClawSkills logoClawSkills

Openai Whisper Api

通过 OpenAI Audio Transcriptions API (Whisper) 转录音频。

介绍

# 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`,或在 `~/.clawdbot/clawdbot.json` 中配置:

```json5 { skills: { "openai-whisper-api": { apiKey: "OPENAI_KEY_HERE" } } } ```

更多产品