Mengambil hasil Tugas node cerdas. Anda dapat memperoleh informasi node cerdas dan hasil eksekusi berdasarkan ID node. Operasi ini hanya mendukung pengkuerian data pengeditan node dari satu tahun terakhir.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetSmartHandleJob |
get |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
No |
ID Pekerjaan. |
****20b48fb04483915d4f2cd8ac**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID Permintaan. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
ID Pekerjaan. |
****20b48fb04483915d4f2cd8ac**** |
| Output |
string |
Hasil Tugas node. |
{} |
| JobResult |
object |
Hasil Tugas node. |
|
| MediaId |
string |
ID Aset media. |
****20b48fb04483915d4f2cd8ac**** |
| AiResult |
string |
Hasil analisis AI. |
ai result |
| Usage |
string |
Penggunaan token. Parameter ini hanya dikembalikan untuk Pekerjaan ekspansi kata kunci. |
{"total_tokens":100} |
| MediaUrl |
string |
URL video keluaran untuk Pekerjaan cerdas. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| State |
string |
Status Pekerjaan. Valid values:
|
Finished |
| UserData |
string |
Informasi yang ditentukan pengguna. |
{"user":"data"} |
| SmartJobInfo |
object |
Informasi Pekerjaan cerdas. |
|
| Title |
string |
Judul Pekerjaan. |
Test title |
| Description |
string |
Deskripsi Pekerjaan. |
Test description |
| UserId |
string |
ID Pengguna. |
1974526429****** |
| InputConfig |
object |
Parameter masukan. |
|
| InputFile |
string |
URL OSS atau ID materi pustaka konten. |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ******11-DB8D-4A9A-875B-275798****** |
| OutputConfig |
object |
Konfigurasi keluaran. |
|
| Bucket |
string |
Bucket OSS. |
test-bucket |
| Object |
string |
Objek OSS. |
test-object |
| CreateTime |
string |
Waktu pembuatan. Waktu ditampilkan dalam UTC dan mengikuti standar ISO 8601. |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
Waktu modifikasi. Waktu ditampilkan dalam UTC dan mengikuti standar ISO 8601. |
2020-12-26T04:11:10Z |
| JobType |
string |
Tipe Pekerjaan. |
ASR |
| ErrorCode |
string |
Kode kesalahan yang dikembalikan ketika Pekerjaan gagal. Parameter ini tidak dikembalikan jika Pekerjaan berhasil dieksekusi. |
SpeechTranslationNoValidVocal |
| ErrorMessage |
string |
Pesan kesalahan yang dikembalikan ketika pekerjaan gagal. Parameter ini tidak dikembalikan jika pekerjaan berhasil dieksekusi. |
The speech translation job failed due to lack of valid vocal voice data. |
Format konten yang dikembalikan bervariasi berdasarkan tipe Pekerjaan cerdas. Contoh berikut menunjukkan hasil eksekusi dari berbagai Pekerjaan cerdas.
Pekerjaan subtitel cerdas 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\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are now extremely popular\",\"from\":0.846,\"to\":3.386},{\"content\":\"often with very high ticket prices\",\"from\":3.386,\"to\":4.402},{\"content\":\"but tickets are snatched up as soon as they go on sale\",\"from\":4.402,\"to\":6.265},{\"content\":\"and they have also participated in various crosstalk variety shows to comment on new performers\",\"from\":6.265,\"to\":10.33}]"
}
}
Pekerjaan ucapan cerdas
{
"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, they are now extremely popular, often with very high ticket prices, but tickets are snatched up as soon as they go on sale, and they have also participated in various crosstalk variety shows to comment on 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\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are now extremely popular\",\"from\":0.846,\"to\":3.386},{\"content\":\"often with very high ticket prices\",\"from\":3.386,\"to\":4.402},{\"content\":\"but tickets are snatched up as soon as they go on sale\",\"from\":4.402,\"to\":6.265},{\"content\":\"and they have also participated in various crosstalk variety shows to comment on new performers\",\"from\":6.265,\"to\":10.33}]"
}
}
Pekerjaan ekspansi kata kunci
{
"RequestId":"******AC-5A01-1116-87A4-BF86F2******",
"UserData":"{\"NotifyAddress\":\"https://****\"}",
"JobResult":{
"AiResult":"[\"Newly opened cake shop, using pure animal cream, with a mellow and silky smooth taste, every bite is a sweet surprise, letting your taste buds dance in freshness and purity!\",\"Explore the new world of desserts, our newly opened cake shop selects high-quality animal cream, low sweetness and not greasy, with rich layers, each carrying a unique sweet story of craftsmanship, waiting for you to taste.\",\"Dedicated to you who understand life, newly opened cake shop, strictly selecting animal cream, refusing artificial additives, pure milk fragrance overflowing, light and dense, every bite is a unique tribute to a better 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\\\":\\\"newly opened cake shop, animal cream\\\",\\\"textLength\\\":100,\\\"targetCount\\\":3}\"}"
}
}
Contoh
Respons sukses
JSONformat
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"Output": "{}",
"JobResult": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"AiResult": "ai result",
"Usage": "{\"total_tokens\":100}",
"MediaUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4"
},
"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": "SpeechTranslationNoValidVocal",
"ErrorMessage": "The speech translation job failed due to lack of valid vocal voice data."
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.