Files
g.hnyhua.cn/TencentCloud/Soe/V20180724/Models/TransmitOralProcessResponse.cs
2026-02-07 15:48:27 +08:00

107 lines
4.6 KiB
C#
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.Soe.V20180724.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TransmitOralProcessResponse : AbstractModel
{
/// <summary>
/// 发音精准度,取值范围[-1, 100],当取-1时指完全不匹配当为句子模式时是所有已识别单词准确度的加权平均值在reftext中但未识别出来的词不计入分数中。当为流式模式且请求中IsEnd未置1时取值无意义。
/// </summary>
[JsonProperty("PronAccuracy")]
public float? PronAccuracy{ get; set; }
/// <summary>
/// 发音流利度,取值范围[0, 1]当为词模式时取值无意义当为流式模式且请求中IsEnd未置1时取值无意义
/// </summary>
[JsonProperty("PronFluency")]
public float? PronFluency{ get; set; }
/// <summary>
/// 发音完整度,取值范围[0, 1]当为词模式时取值无意义当为流式模式且请求中IsEnd未置1时取值无意义
/// </summary>
[JsonProperty("PronCompletion")]
public float? PronCompletion{ get; set; }
/// <summary>
/// 详细发音评估结果
/// </summary>
[JsonProperty("Words")]
public WordRsp[] Words{ get; set; }
/// <summary>
/// 语音段唯一标识一段语音一个SessionId
/// </summary>
[JsonProperty("SessionId")]
public string SessionId{ get; set; }
/// <summary>
/// 保存语音音频文件下载地址
/// </summary>
[JsonProperty("AudioUrl")]
public string AudioUrl{ get; set; }
/// <summary>
/// 断句中间结果中间结果是局部最优而非全局最优的结果所以中间结果有可能和最终整体结果对应部分不一致中间结果的输出便于客户端UI更新待用户发音完全结束后系统会给出一个综合所有句子的整体结果。
/// </summary>
[JsonProperty("SentenceInfoSet")]
public SentenceInfo[] SentenceInfoSet{ get; set; }
/// <summary>
/// 评估 session 状态“Evaluating":评估中、"Failed":评估失败、"Finished":评估完成
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 建议评分,取值范围[0,100],评分方式为建议评分 = 准确度PronAccuracyfloat× 完整度PronCompletionfloat×2 - 完整度PronCompletionfloat如若评分策略不符合请参考Words数组中的详细分数自定义评分逻辑。
/// </summary>
[JsonProperty("SuggestedScore")]
public float? SuggestedScore{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "PronAccuracy", this.PronAccuracy);
this.SetParamSimple(map, prefix + "PronFluency", this.PronFluency);
this.SetParamSimple(map, prefix + "PronCompletion", this.PronCompletion);
this.SetParamArrayObj(map, prefix + "Words.", this.Words);
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
this.SetParamSimple(map, prefix + "AudioUrl", this.AudioUrl);
this.SetParamArrayObj(map, prefix + "SentenceInfoSet.", this.SentenceInfoSet);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "SuggestedScore", this.SuggestedScore);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}