呼叫QueryIProductionJob查詢智慧生產任務狀態與結果。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ice:QueryIProductionJob |
get |
*全部資源。
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
冪等參數。 |
****12e8864746a0a398**** |
| JobId |
string |
是 |
智慧任務 ID。 |
****20b48fb04483915d4f2cd8ac**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
01A0E5D1-4B3C-599D-8017-2DA186EA1053 |
| JobId |
string |
任務 ID。 |
****20b48fb04483915d4f2cd8ac**** |
| Name |
string |
任務名稱。 |
Test task |
| FunctionName |
string |
需要使用的演算法功能名稱。取值:
|
Cover |
| Input |
object |
輸入媒體。 |
|
| Type |
string |
輸入類型,取值:
|
OSS |
| Media |
string |
輸入媒體。當 Type 為 OSS 時填入 OSS 位址,Type 為 Media 時填入媒資 ID。 OSS 位址規則為:
|
oss://bucket/object |
| Output |
object |
輸出媒體。 |
|
| Type |
string |
媒體類型:
|
OSS |
| Biz |
string |
媒資所屬業務。 枚舉值:
|
IMS |
| Media |
string |
輸出媒體。當 Type 為 OSS 時返回 OSS 位址,Type 為 Media 時返回指定的媒資 ID 或新生成媒資 ID。 OSS 位址規則為:
|
oss://bucket/object |
| OutputUrl |
string |
當 Type=Media 時,為指定輸出檔案 OSS 位址。 |
http(s)://bucket.oss-[RegionId].aliyuncs.com/object |
| TemplateId |
string |
範本 ID。 |
****96e8864746a0b6f3**** |
| JobParams |
string |
演算法作業參數,JSON 物件,不同演算法對應參數內容不同。 |
{"Model":"gif"} |
| ScheduleConfig |
object |
任務配置資訊。 |
|
| PipelineId |
string |
管道 ID。 |
a54fdc9c9aab413caef0d1150f565e86 |
| Priority |
integer |
任務在其對應管道內的優先順序。
|
6 |
| UserData |
string |
使用者自訂資料,獲取結果時原樣返回。 |
{"test":1} |
| Result |
string |
演算法輸出的結果資訊,不同 FunctionName 的輸出不同,以 JSON 格式輸出,詳見下面的補充說明。 |
{} |
| CreateTime |
string |
建立時間,GMT 時間。 |
2022-07-07T07:16:11Z |
| FinishTime |
string |
完成時間,GMT 時間。 |
2021-11-26T14:50:25Z |
| Status |
string |
作業狀態。取值:
|
Success |
| OutputFiles |
array |
輸出檔案陣列。 |
|
|
string |
生成的檔案路徑與名稱。 |
output/xxx.mp4 |
|
| OutputMediaIds |
array |
任務輸出的媒資 ID 清單。 |
|
|
string |
任務輸出的媒資 ID。 |
['fdd967d0ae2271f09aa4e7f7d4490104'] |
|
| OutputUrls |
array |
輸出檔案 URL 陣列。 |
|
|
string |
生成的檔案可存取 URL 路徑。 |
http://xxx |
Result 範例說明。
Cover
範例:[{"Score":8.270855992569906,"Time":"28278.25","Url":"cover/test-00001.jpg"},{"Score":7.474117489692728,"Time":"25942.583333333332","Url":"cover/test-00002.jpg"}]
其中 Score 為封面結果信賴度,Time 為封面影格時間戳記,Url 為封面檔案路徑。
VideoClip
範例:{"VideoSummaryList":[{"EndTime":"5.28","StartTime":"0.28"}]}
其中 VideoSummaryList 是個清單,表示從原影片中截取的時段,單位為秒。
VideoDelogo
範例:{}
演算法無額外資訊輸出。
VideoDetext
範例:{}
演算法無額外資訊輸出。
CaptionExtraction
範例:{}
演算法無額外資訊輸出。
VideoGreenScreenMatting
範例:{}
演算法無額外資訊輸出。
FaceBeauty
範例:{}
演算法無額外資訊輸出。
VideoH2V
範例:{}
演算法無額外資訊輸出。
MusicSegmentDetect
範例:[{"start":39.32,"end":63.85,"title":"Chorus"},{"start":86.69,"end":114.45,"title":"Chorus"},{"start":135.75,"end":160.27,"title":"Chorus"}]
AudioBeatDetection
範例:{}
演算法無額外資訊輸出。
AudioQualityAssessment
範例: [{ "Discontinuity":"Good", "Loudness":"Excellent", "Worst MOS(0-5)":"0.38", "Discontinuity(0-5)":"3.52", "Speech Ratio":"48.55", "Loudness(0-5)":"4.91", "Worst Discontinuity(0-5)":"0.88", "Worst Coloration(0-5)":"0.42", "Channel":"1", "Coloration(0-5)":"0.99", "Bad Mute Ratio(%)":"0.0", "Time":"2022-12-02 16:14:06", "Noisiness(0-5)":"3.28", "MOS":"Poor", "Worst Noisiness(0-5)":"0.91", "Double Talk Ratio(%)":"19.23", "Input":"/home/admin/algo/quality****/example.wav", "Total Duration":"42.78", "Noisiness":"Good", "Tag":"Valid", "MOS(0-5)":"1.01", "Loudness(-90dB-0dB)":"-0.59", "Coloration":"Bad", "Saturated Ratio(%)":"37.55" }, { "Discontinuity":"Fair", "Loudness":"Excellent", "Worst MOS(0-5)":"0.65", "Discontinuity(0-5)":"2.45", "Speech Ratio":"41.68", "Loudness(0-5)":"4.52", "Worst Discontinuity(0-5)":"0.66", "Worst Coloration(0-5)":"0.72", "Channel":"2", "Coloration(0-5)":"2.34", "Bad Mute Ratio(%)":"0.0", "Time":"2022-12-02 16:14:06", "Noisiness(0-5)":"2.53", "MOS":"Poor", "Worst Noisiness(0-5)":"0.67", "Double Talk Ratio(%)":"25.93", "Input":"/home/admin/algo/quality****/example.wav", "Total Duration":"42.78", "Noisiness":"Fair", "Tag":"Valid", "MOS(0-5)":"1.69", "Loudness(-90dB-0dB)":"-4.82", "Coloration":"Fair", "Saturated Ratio(%)":"0.0" }]
SpeechDenoise
範例:{}
演算法無額外資訊輸出。
AudioMixing
範例:{}
演算法無額外資訊輸出。
MusicDemix
範例:{}
演算法無額外資訊輸出。
樣本
正常返回樣本
JSON格式
{
"RequestId": "01A0E5D1-4B3C-599D-8017-2DA186EA1053",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"Name": "Test task",
"FunctionName": "Cover",
"Input": {
"Type": "OSS",
"Media": "oss://bucket/object"
},
"Output": {
"Type": "OSS",
"Biz": "IMS",
"Media": "oss://bucket/object",
"OutputUrl": "http(s)://bucket.oss-[RegionId].aliyuncs.com/object "
},
"TemplateId": "****96e8864746a0b6f3****",
"JobParams": "{\"Model\":\"gif\"}",
"ScheduleConfig": {
"PipelineId": "a54fdc9c9aab413caef0d1150f565e86",
"Priority": 6
},
"UserData": "{\"test\":1}",
"Result": "{}",
"CreateTime": "2022-07-07T07:16:11Z",
"FinishTime": "2021-11-26T14:50:25Z",
"Status": "Success",
"OutputFiles": [
"output/xxx.mp4"
],
"OutputMediaIds": [
"['fdd967d0ae2271f09aa4e7f7d4490104']"
],
"OutputUrls": [
"http://xxx"
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。