Obtém as informações e o resultado da execução de uma tarefa inteligente pelo ID da tarefa. Esta API suporta apenas a consulta de tarefas de edição do último ano.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ice:GetSmartHandleJob |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| JobId |
string |
Não |
O ID do job. |
****20b48fb04483915d4f2cd8ac**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O esquema da resposta. |
||
| RequestId |
string |
O ID da solicitação. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
O ID do job. |
****20b48fb04483915d4f2cd8ac**** |
| Output |
string |
A saída do job. |
{} |
| JobResult |
object |
O resultado do job. |
|
| MediaId |
string |
O ID da mídia. |
****20b48fb04483915d4f2cd8ac**** |
| AiResult |
string |
O resultado da IA. |
拆条或智能标签信息 |
| Usage |
string |
O uso de tokens. Este parâmetro é retornado apenas para jobs de expansão de palavras-chave. |
{"total_tokens":100} |
| MediaUrl |
string |
A URL do arquivo de mídia de saída gerado pelo job inteligente. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| State |
string |
O estado do job. Valores válidos:
|
Finished |
| UserData |
string |
Os dados do usuário. |
{"user":"data"} |
| SmartJobInfo |
object |
As informações do job inteligente. |
|
| Title |
string |
O título do job. |
Test title |
| Description |
string |
A descrição do job. |
Test description |
| UserId |
string |
O ID do usuário. |
1974526429****** |
| InputConfig |
object |
A configuração de entrada. |
|
| InputFile |
string |
The Object Storage Service (OSS) URL of the input file or the media ID. |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ******11-DB8D-4A9A-875B-275798****** |
| OutputConfig |
object |
A configuração de saída. |
|
| Bucket |
string |
The OSS bucket. |
test-bucket |
| Object |
string |
The OSS object. |
test-object |
| CreateTime |
string |
A hora de criação. |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
A hora de modificação. |
2020-12-26T04:11:10Z |
| JobType |
string |
O tipo de job. |
ASR |
| ErrorCode |
string |
O código de erro. Este parâmetro é retornado apenas se o job falhar. |
SpeechTranslationNoValidVocal |
| ErrorMessage |
string |
A mensagem de erro. Este parâmetro é retornado apenas se o job falhar. |
The speech translation job failed due to lack of valid vocal voice data. |
O formato do resultado varia dependendo do tipo de job inteligente. Os exemplos a seguir mostram os corpos de resposta para diferentes jobs inteligentes.
Legendagem inteligente por 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, he\",\"from\":0.0,\"to\":0.846},{\"content\":\"is now incredibly popular.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often very expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly upon release.\",\"from\":4.402,\"to\":6.265},{\"content\":\"He also participates in various crosstalk variety shows to comment on new performers and has already...\",\"from\":6.265,\"to\":10.33}]"
}
}
Conversão de texto em fala
{
"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, he is now incredibly popular. Tickets are often very expensive, but they sell out instantly upon release. He also participates in various crosstalk variety shows to comment on new performers and has already..."
},
"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, he\",\"from\":0.0,\"to\":0.846},{\"content\":\"is now incredibly popular.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often very expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly upon release.\",\"from\":4.402,\"to\":6.265},{\"content\":\"He also participates in various crosstalk variety shows to comment on new performers and has already...\",\"from\":6.265,\"to\":10.33}]"
}
}
Geração de texto
{
"RequestId":"******AC-5A01-1116-87A4-BF86F2******",
"UserData":"{\"NotifyAddress\":\"https://****\"}",
"JobResult":{
"AiResult":"[\"Try the cakes from our new store, made with pure, real cream for a rich, silky-smooth texture. Every bite is a sweet surprise that lets your taste buds dance with freshness and purity!\",\"Explore a new world of desserts. Our new store's cakes feature premium real cream, offering a low-sugar, non-cloying flavor with rich layers. Each cake tells a sweet story of craftsmanship, waiting for you to discover.\",\"For those who appreciate the finer things in life: our new cake shop uses carefully selected real cream with no artificial additives. Enjoy the pure, fragrant aroma and a light, fluffy texture. Every bite is a 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 cake shop, real cream\\\",\\\"textLength\\\":100,\\\"targetCount\\\":3}\"}"
}
}
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"Output": "{}",
"JobResult": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"AiResult": "拆条或智能标签信息",
"Usage": "{\"total_tokens\":100}",
"MediaUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4"
},
"State": "Finished",
"UserData": "{\"user\":\"data\"}",
"SmartJobInfo": {
"Title": "Test title",
"Description": "Test description",
"UserId": "1974526429******",
"InputConfig": {
"InputFile": "oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ******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."
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.