Files
2026-02-07 15:48:27 +08:00

80 lines
2.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Asr.V20190614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TaskStatus : AbstractModel
{
/// <summary>
/// 任务标识。
/// </summary>
[JsonProperty("TaskId")]
public ulong? TaskId{ get; set; }
/// <summary>
/// 任务状态码0任务等待1任务执行中2任务成功3任务失败。
/// </summary>
[JsonProperty("Status")]
public long? Status{ get; set; }
/// <summary>
/// 任务状态waiting任务等待doing任务执行中success任务成功failed任务失败。
/// </summary>
[JsonProperty("StatusStr")]
public string StatusStr{ get; set; }
/// <summary>
/// 识别结果。
/// </summary>
[JsonProperty("Result")]
public string Result{ get; set; }
/// <summary>
/// 失败原因说明。
/// </summary>
[JsonProperty("ErrorMsg")]
public string ErrorMsg{ get; set; }
/// <summary>
/// 识别结果详情,包含每个句子中的词时间偏移,一般用于生成字幕的场景。(录音识别请求中ResTextFormat=1时该字段不为空)
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ResultDetail")]
public SentenceDetail[] ResultDetail{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "StatusStr", this.StatusStr);
this.SetParamSimple(map, prefix + "Result", this.Result);
this.SetParamSimple(map, prefix + "ErrorMsg", this.ErrorMsg);
this.SetParamArrayObj(map, prefix + "ResultDetail.", this.ResultDetail);
}
}
}