文字起こし
CometAPI の POST /v1/audio/transcriptions を使用して、選択した文字起こしモデルとレスポンス形式で音声をテキストに文字起こしします。
最初のリクエスト
model と file を指定して、サポートされている音声ファイルを送信します。アップロード処理、認証、レスポンス解析を確認している間は、最初のファイルを短めにしてください。
レスポンスを読む
デフォルトのレスポンスには、文字起こしされたtext が含まれます。別のレスポンス形式をリクエストする場合は、デフォルトの JSON 形式を前提にせず、その形式をクライアントで正しく解析してください。
次のステップ
承認
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.