Tạo Translation
Sử dụng CometAPI POST /v1/audio/translations để dịch âm thanh nói sang văn bản tiếng Anh. Hỗ trợ model Whisper với nhiều định dạng đầu ra.
Yêu cầu đầu tiên
Gửi một tệp âm thanh được hỗ trợ vớimodel và file. Trước tiên hãy dùng một mẫu ngắn để bạn có thể xác minh việc 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 bằng 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.