Create translation
Usa CometAPI POST /v1/audio/translations per tradurre l’audio parlato in testo inglese con un modello di traduzione e un formato di risposta selezionati.
Prima richiesta
Invia un file audio supportato conmodel e file. Usa prima un campione breve così puoi verificare la gestione dell’upload, il rilevamento della lingua e il parsing dell’output.
Leggere la risposta
La risposta predefinita include iltext tradotto in inglese. Se richiedi un formato di risposta diverso, analizza la risposta in base a quel formato.
Passaggi successivi
- Usa Create Transcription quando ti serve il testo nella lingua originale.
- Usa Create Speech quando ti serve generare audio dal testo.
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Corpo
The audio file to translate. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
The audio translation model to use. Choose a current speech model from the Models page.
Optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.
The output format for the translation.
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 translation result in English.
The translated text in English.