Create Translation
Konuşulan sesi, seçilen bir çeviri modeli ve yanıt formatıyla İngilizce metne çevirmek için CometAPI POST /v1/audio/translations uç noktasını kullanın.
İlk istek
model ve file ile desteklenen bir ses dosyası gönderin. Yükleme işleme, dil algılama ve çıktı ayrıştırmayı doğrulayabilmek için önce kısa bir örnek kullanın.
Yanıtı okuma
Varsayılan yanıt, çevrilmiş İngilizcetext içerir. Farklı bir yanıt formatı isterseniz yanıtı o formata göre ayrıştırın.
Sonraki adımlar
- Orijinal dilde metne ihtiyacınız olduğunda Create Transcription kullanın.
- Metinden ses üretmeniz gerektiğinde Create Speech kullanın.
Yetkilendirmeler
Bearer token authentication. Use your CometAPI key.
Gövde
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 <= 1Yanıt
The translation result in English.
The translated text in English.