OpenAI Whisper API (curl)
OpenAI의 /v1/audio/transcriptions 엔드포인트를 통해 오디오 파일을 텍스트로 변환합니다.
빠른 시작
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
기본값:
- 모델:
whisper-1 - 출력:
<입력파일명>.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를 설정하거나 ~/.otto/otto.json에 설정합니다:
{
skills: {
"openai-whisper-api": {
apiKey: "OPENAI_KEY_HERE",
},
},
}