建立翻譯
使用 CometAPI POST /v1/audio/translations,透過選定的翻譯模型與回應格式,將語音音訊翻譯為英文文字。
First request
傳送支援的音訊檔案,並提供model 與 file。建議先使用簡短樣本,以便驗證上傳處理、語言偵測與輸出剖析。
Read the response
預設回應會包含翻譯後的英文text。如果你要求不同的回應格式,請依照該格式解析回應。
Next steps
授權
Bearer token authentication. Use your CometAPI key.
主體
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 <= 1回應
The translation result in English.
The translated text in English.