Create Transcription
Utilisez CometAPI POST /v1/audio/transcriptions pour transcrire l’audio en texte avec un modèle de transcription et un format de réponse sélectionnés.
Première requête
Envoyez un fichier audio pris en charge avecmodel et file. Gardez le premier fichier court pendant que vous validez la gestion de l’upload, l’authentification et l’analyse de la réponse.
Lire la réponse
La réponse par défaut inclut letext transcrit. Si vous demandez un autre format de réponse, assurez-vous que votre client analyse ce format au lieu de supposer la forme JSON par défaut.
Étapes suivantes
- Utilisez Create Speech lorsque vous avez besoin d’une sortie de synthèse vocale.
- Utilisez Create Translation lorsque la sortie cible doit être en anglais.
Autorisations
Bearer token authentication. Use your CometAPI key.
Corps
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 <= 1Réponse
The transcription result.
The transcribed text.