建立轉錄
post/v1/audio/transcriptions
將音訊轉錄為文字。
驗證
把 OLETOKEN 的 API Key 作為 Bearer Token 放進 Authorization 請求標頭。金鑰在控制台的「API 金鑰」頁建立。
Authorization: Bearer $OLETOKEN_API_KEY請求主體
Content-Type:multipart/form-data
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| file | string | 音訊檔案 | |
| model | string | — | |
| language | string | — | ISO-639-1 語言代碼 |
| prompt | string | — | — |
| response_format | stringdefault: jsonjsontextsrtverbose_jsonvtt | — | — |
| temperature | number | — | — |
| timestamp_granularities | string[] | — | — |
回應
200已建立轉錄
| 欄位 | 類型 | 必填 | 說明 |
|---|---|---|---|
| text | string | — | — |
請求範例
curl -X POST 'https://api.oletoken.ai/v1/audio/transcriptions' \
-H "Authorization: Bearer $OLETOKEN_API_KEY" \
-F 'file=' \
-F 'model=whisper-1'
