建立轉錄
使用 CometAPI POST /v1/audio/transcriptions,搭配選定的轉錄模型與回應格式,將音訊轉錄為文字。
First request
傳送受支援的音訊檔案,並附上model 與 file。在驗證上傳處理、驗證機制與回應剖析之前,請先使用較短的第一個檔案。
Read the response
預設回應會包含轉錄後的text。如果你要求其他回應格式,請確認你的用戶端會剖析該格式,而不是假設為預設的 JSON 結構。
Next steps
授權
Bearer token authentication. Use your CometAPI key.
主體
The audio file to transcribe. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
The speech-to-text model to use. Choose a current speech model from the Models page.
The language of the input audio in ISO-639-1 format (e.g., en, zh, ja). Supplying the language improves accuracy and latency.
Optional text to guide the model's style or continue a previous audio segment. The prompt should match the audio language.
The output format for the transcription.
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 transcription result.
The transcribed text.