OpenAI Whisper API (curl)은(는) 무엇을 하나요?
OpenAI의 /v1/audio/transcriptions 엔드포인트를 통해 오디오 파일을 텍스트로 변환합니다.
빠른 시작
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
기본값:
- 모델:
whisper-1 - 출력:
<input>.txt
유용한 플래그
{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 "화자 이름: Peter, Daniel"
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --json --out /tmp/transcript.json
API 키
OPENAI_API_KEY를 설정하거나, ~/.clawdbot/clawdbot.json에서 구성하세요:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE"
}
}
}