Skip to main content
POST
Python
Gebruik dit endpoint om audio naar tekst te transcriberen in de brontaal. Het is geschikt voor vergadernotities, spraakberichten, media-indexering, ondertiteling en supportworkflows die doorzoekbare tekst nodig hebben.

Eerste request

Verstuur een ondersteund audiobestand met model en file. Houd het eerste bestand kort terwijl je uploadverwerking, authenticatie en response-parsing valideert.

Lees de response

De standaardresponse bevat de getranscribeerde text. Als je een andere response-indeling aanvraagt, zorg er dan voor dat je client die indeling parseert in plaats van uit te gaan van de standaard JSON-structuur.

Volgende stappen

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

multipart/form-data
file
file
vereist

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

model
string
standaard:whisper-1
vereist

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>
standaard:json

The output format for the transcription.

Beschikbare opties:
json,
text,
srt,
verbose_json,
vtt
temperature
number
standaard: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.

Vereist bereik: 0 <= x <= 1

Respons

200 - application/json

The transcription result.

text
string
vereist

The transcribed text.