Skip to main content
POST
Python
이 엔드포인트를 사용하면 오디오를 원본 언어의 텍스트로 전사할 수 있습니다. 회의 노트, 음성 메시지, 미디어 인덱싱, 자막, 검색 가능한 텍스트가 필요한 지원 워크플로에 적합합니다.

첫 번째 요청

modelfile이 포함된 지원되는 오디오 파일을 전송하세요. 업로드 처리, 인증, 응답 파싱을 검증하는 동안에는 첫 번째 파일을 짧게 유지하세요.

응답 읽기

기본 응답에는 전사된 text가 포함됩니다. 다른 응답 형식을 요청하는 경우, 기본 JSON 형태를 가정하지 말고 클라이언트가 해당 형식을 파싱하도록 하세요.

다음 단계

  • 텍스트를 음성으로 출력해야 하는 경우 음성 생성을 사용하세요.
  • 대상 출력이 영어여야 하는 경우 번역을 사용하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

multipart/form-data
file
file
필수

The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.

model
string
기본값:whisper-1
필수

The speech-to-text model to use. Choose a current speech model from the Models page.

language
string

The language of the input audio in ISO-639-1 format (e.g., en, zh, ja). Supplying the language improves accuracy and latency.

prompt
string

Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.

response_format
enum<string>
기본값:json

The output format for the transcription.

사용 가능한 옵션:
json,
text,
srt,
verbose_json,
vtt
temperature
number
기본값:0

Sampling temperature between 0 and 1. Higher values produce more random output; lower values are more focused. When set to 0, the model auto-adjusts temperature using log probability.

필수 범위: 0 <= x <= 1

응답

200 - application/json

The transcription result.

text
string
필수

The transcribed text.