Create transcription
Gebruik CometAPI POST /v1/audio/transcriptions om audio naar tekst te transcriberen met een geselecteerd transcriptiemodel en response-indeling.
Eerste request
Verstuur een ondersteund audiobestand metmodel en file. Houd het eerste bestand kort terwijl je uploadverwerking, authenticatie en response-parsing valideert.
Lees de response
De standaardresponse bevat de getranscribeerdetext. 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
- Gebruik Create Speech wanneer je text-to-speech-output nodig hebt.
- Gebruik Create Translation wanneer de doeloutput Engels moet zijn.
Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
The speech-to-text model to use. Choose a current speech model from the Models page.
The language of the input audio in ISO-639-1 format (e.g., en, zh, ja). Supplying the language improves accuracy and latency.
Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
The output format for the transcription.
json, text, srt, verbose_json, vtt 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 <= 1Respons
The transcription result.
The transcribed text.