Create transcription
Usa CometAPI POST /v1/audio/transcriptions per trascrivere l’audio in testo con un modello di trascrizione e un formato di risposta selezionati.
Prima richiesta
Invia un file audio supportato conmodel e file. Mantieni il primo file breve mentre verifichi la gestione dell’upload, l’autenticazione e il parsing della risposta.
Leggere la risposta
La risposta predefinita include iltext trascritto. Se richiedi un altro formato di risposta, assicurati che il client analizzi quel formato invece di dare per scontata la struttura JSON predefinita.
Passaggi successivi
- Usa Create Speech quando hai bisogno di un output text-to-speech.
- Usa Create Translation quando l’output di destinazione deve essere in inglese.
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Corpo
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 <= 1Risposta
The transcription result.
The transcribed text.