Create translation
Sử dụng CometAPI POST /v1/audio/translations để dịch âm thanh lời nói thành văn bản tiếng Anh với model dịch và định dạng phản hồi đã chọn.
Yêu cầu đầu tiên
Gửi một tệp âm thanh được hỗ trợ vớimodel và file. Hãy dùng một mẫu ngắn trước để bạn có thể xác minh việc xử lý tải lên, phát hiện ngôn ngữ và phân tích đầu ra.
Đọc phản hồi
Phản hồi mặc định bao gồmtext tiếng Anh đã được dịch. Nếu bạn yêu cầu một định dạng phản hồi khác, hãy phân tích phản hồi theo đúng định dạng đó.
Các bước tiếp theo
- Dùng Create Transcription khi bạn cần văn bản ở ngôn ngữ gốc.
- Dùng Create Speech khi bạn cần tạo âm thanh từ văn bản.
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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 <= 1Phản hồi
The translation result in English.
The translated text in English.