Analysis Audio Keywords
Description
分析語音提取關鍵字
Resources
POST /v1/audio/keywords
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
請使用 form-data 格式作為請求 body
| Name | Type | Description |
| -------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| text | string | 文字
帶此參數則不用帶其他參數,會根據 text 直接提取關鍵字
(optional) |
| file | File | 音訊檔案(.wav)
(optional) |
| origin_lang | string | 語音語言
ALLOWED VALUES:
- zh-TW: 繁體中文
- en-US: 英語 (美國)
- ja-JP: 日語
- ko-KR: 韓語
- fr-FR: 法語 (法國)
(optional) | | translate_lang | string | 翻譯語言
ALLOWED VALUES:
- zh-Hant: 繁體中文
(optional) |
Request Example
curl --location '{url}/v1/audio/keywords' \
--header 'Authorization: Bearer {py_token}' \
--form 'file=@"/C:/downloads/audio/order_en.wav"' \
--form 'origin_lang="en-US"' \
--form 'translate_lang="zh-Hant"'
Response Body Parameters
| Name | Type | Description |
|---|---|---|
| keywords | list[string] | 關鍵字列表 |
Response Example
{
"keywords": ["漢堡", "咖啡", "飯"]
}