Create Transcription
Verwenden Sie CometAPI POST /v1/audio/transcriptions, um Audio mit einem ausgewählten Transkriptionsmodell und Antwortformat in Text zu transkribieren.
Erste Anfrage
Senden Sie eine unterstützte Audiodatei mitmodel und file. Halten Sie die erste Datei kurz, während Sie Upload-Verarbeitung, Authentifizierung und Antwort-Parsing validieren.
Antwort lesen
Die Standardantwort enthält den transkribiertentext. Wenn Sie ein anderes Antwortformat anfordern, stellen Sie sicher, dass Ihr Client dieses Format parst, anstatt die Standard-JSON-Struktur anzunehmen.
Nächste Schritte
- Verwenden Sie Create Speech, wenn Sie eine Text-zu-Sprache-Ausgabe benötigen.
- Verwenden Sie Create Translation, wenn die Zielausgabe Englisch sein soll.
Autorisierungen
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 <= 1Antwort
The transcription result.
The transcribed text.