タスク ID を使用して、クリッピングタスクの情報および実行結果を取得します。過去 1 年以内に送信されたタスクのみ照会可能です。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ice:GetSmartHandleJob |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| JobId |
string |
任意 |
ジョブ ID。 |
****20b48fb04483915d4f2cd8ac**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答本文。 |
||
| RequestId |
string |
リクエスト ID。 |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
ジョブ ID。 |
****20b48fb04483915d4f2cd8ac**** |
| Output |
string |
ジョブ出力。 |
{} |
| JobResult |
object |
ジョブ結果。 |
|
| MediaId |
string |
メディアアセットの ID。 |
****20b48fb04483915d4f2cd8ac**** |
| AiResult |
string |
AI 分析結果。 |
拆条或智能标签信息 |
| Usage |
string |
トークン使用量。このパラメーターは、キーワード拡張ジョブの場合にのみ返されます。 |
{"total_tokens":100} |
| MediaUrl |
string |
||
| State |
string |
ジョブのステータス。 列挙値:
|
Finished |
| UserData |
string |
カスタムユーザーデータ。 |
{"user":"data"} |
| SmartJobInfo |
object |
スマートジョブに関する情報。 |
|
| Title |
string |
ジョブのタイトル。 |
测试标题 |
| Description |
string |
ジョブの説明。 |
测试描述 |
| UserId |
string |
ユーザー ID。 |
1974526429****** |
| InputConfig |
object |
入力構成。 |
|
| InputFile |
string |
入力ファイルの Object Storage Service (OSS) URL、またはメディアライブラリ内のメディアアセット ID。 |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 或 ******11-DB8D-4A9A-875B-275798****** |
| OutputConfig |
object |
出力構成。 |
|
| Bucket |
string |
送信先 OSS バケット。 |
test-bucket |
| Object |
string |
送信先 OSS オブジェクトのパス。 |
test-object |
| CreateTime |
string |
ジョブ作成時刻。時刻は協定世界時 (UTC) で、ISO 8601 標準に基づいてフォーマットされます。 |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
ジョブ最終更新時刻。時刻は協定世界時 (UTC) で、ISO 8601 標準に基づいてフォーマットされます。 |
2020-12-26T04:11:10Z |
| JobType |
string |
ジョブタイプ。 |
ASR |
| ErrorCode |
string |
ジョブが失敗した場合に返されるエラーコード。 |
|
| ErrorMessage |
string |
ジョブが失敗した場合に返されるエラーメッセージ。 |
ジョブ結果の形式は、スマートジョブのタイプによって異なります。以下に、各タイプごとのレスポンス形式のサンプルを示します。
ASR インテリジェント字幕
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobId": "******042d5e4db6866f6289d1******",
"State": "Finished",
"SmartJobInfo": {
"JobType": "ASR",
"ModifiedTime": "2022-01-21T06:15:08Z",
"CreateTime": "2022-01-21T06:15:02Z",
"Title": "default_title_2022-01-21T06:15:02Z",
"InputConfig": {
"JobParameters": "{\"duration\":\"00:30:00\",\"start_time\":\"00:00:00\",\"request_params\":\"&enable_word_level_result=true\"}",
"InputFile": "oss://your-bucket.oss-cn-shanghai.aliyuncs.com/your-video.mp4"
}
},
"JobResult": {
"AiResult": "[{\"content\":\"Speaking of which,\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are incredibly popular right now.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly.\",\"from\":4.402,\"to\":6.265},{\"content\":\"They have also appeared on various comedy shows to critique new performers.\",\"from\":6.265,\"to\":10.33}]"
}
}
テキスト読み上げ
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobId": "******042d5e4db6866f6289d1******",
"State": "Finished",
"SmartJobInfo": {
"Title": "default_title_2022-01-21T06:15:07Z",
"JobType": "TextToSpeech",
"CreateTime": "2022-01-21T06:15:07Z",
"ModifiedTime": "2022-01-21T06:15:07Z",
"InputConfig": {
"InputFile": "Speaking of which, they are incredibly popular right now. Tickets are often expensive but sell out instantly. They have also appeared on various comedy shows to critique new performers."
},
"EditingConfig": "{\"format\":\"MP3\",\"pitch_rate\":0,\"sample_rate\":16000,\"speech_rate\":0,\"voice\":\"Siqi\",\"volume\":50}",
"OutputConfig": {
"Bucket": "your-bucket",
"Object": "your-audio"
}
},
"JobResult": {
"MediaId": "******bf47c94e82b3b2014361******",
"AiResult": "[{\"content\":\"Speaking of which,\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are incredibly popular right now.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly.\",\"from\":4.402,\"to\":6.265},{\"content\":\"They have also appeared on various comedy shows to critique new performers.\",\"from\":6.265,\"to\":10.33}]"
}
}
テキスト生成
{
"RequestId":"******AC-5A01-1116-87A4-BF86F2******",
"UserData":"{\"NotifyAddress\":\"https://****\"}",
"JobResult":{
"AiResult":"[\"Our new shop's cakes are made with pure dairy cream, offering a rich, silky-smooth texture. Every bite is a sweet surprise, letting your taste buds dance with freshness and purity!\",\"Explore a new world of desserts. Our new shop's cakes feature premium dairy cream, are lightly sweetened, not heavy, and have rich layers. Each cake tells a unique story of craftsmanship and sweetness, waiting for you to savor.\",\"For those who appreciate the finer things in life, our newly opened cake shop carefully selects dairy cream and rejects artificial additives. Enjoy the pure, milky aroma and a light, delicate texture. Every bite is a unique celebration of the good life.\"]",
"Usage": "{\"total_tokens\":200}"
},
"State":"Finished",
"JobId":"******8c784f461db57c99c9d9******",
"SmartJobInfo":{
"JobType":"TextGenerate",
"ModifiedTime":"2024-01-17T08:46:17Z",
"CreateTime":"2024-01-17T08:46:17Z",
"Title":"default_title_2024-01-17T08:46:17Z",
"EditingConfig":"{\"Type\":\"MarketingCopy\",\"GenerateConfig\":\"{\\\"keywords\\\":\\\"new shop's cake, dairy cream\\\",\\\"textLength\\\":100,\\\"targetCount\\\":3}\"}"
}
}
例
成功レスポンス
JSONJSON
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"Output": "{}",
"JobResult": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"AiResult": "拆条或智能标签信息",
"Usage": "{\"total_tokens\":100}",
"MediaUrl": ""
},
"State": "Finished",
"UserData": "{\"user\":\"data\"}",
"SmartJobInfo": {
"Title": "测试标题",
"Description": "测试描述",
"UserId": "1974526429******",
"InputConfig": {
"InputFile": "oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 或 ******11-DB8D-4A9A-875B-275798******"
},
"OutputConfig": {
"Bucket": "test-bucket",
"Object": "test-object"
},
"CreateTime": "2020-12-26T04:11:10Z",
"ModifiedTime": "2020-12-26T04:11:10Z",
"JobType": "ASR"
},
"ErrorCode": "",
"ErrorMessage": ""
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。