/*
* 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 InitOralProcessRequest : AbstractModel
{
///
/// 语音段唯一标识,一段语音一个SessionId
///
[JsonProperty("SessionId")]
public string SessionId{ get; set; }
///
/// 被评估语音对应的文本,句子模式下不超过个 20 单词或者中文文字,段落模式不超过 120 单词或者中文文字,中文评估使用 utf-8 编码,自由说模式该值传空。如需要在单词模式和句子模式下使用自定义音素,可以通过设置 TextMode 使用[音素标注](https://cloud.tencent.com/document/product/884/33698)。
///
[JsonProperty("RefText")]
public string RefText{ get; set; }
///
/// 语音输入模式,0:流式分片,1:非流式一次性评估
///
[JsonProperty("WorkMode")]
public long? WorkMode{ get; set; }
///
/// 评估模式,0:词模式(中文评测模式下为文字模式),1:句子模式,2:段落模式,3:自由说模式,当为词模式评估时,能够提供每个音节的评估信息,当为句子模式时,能够提供完整度和流利度信息。4: 英文单词音素诊断评测模式,针对一个单词音素诊断评测。
///
[JsonProperty("EvalMode")]
public long? EvalMode{ get; set; }
///
/// 评价苛刻指数,取值为[1.0 - 4.0]范围内的浮点数,用于平滑不同年龄段的分数,1.0为小年龄段,4.0为最高年龄段
///
[JsonProperty("ScoreCoeff")]
public float? ScoreCoeff{ get; set; }
///
/// 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。
///
[JsonProperty("SoeAppId")]
public string SoeAppId{ get; set; }
///
/// 长效session标识,当该参数为1时,session的持续时间为300s,但会一定程度上影响第一个数据包的返回速度,且TransmitOralProcess必须同时为1才可生效。
///
[JsonProperty("IsLongLifeSession")]
public long? IsLongLifeSession{ get; set; }
///
/// 音频存储模式,0:不存储,1:存储到公共对象存储,输出结果为该会话最后一个分片TransmitOralProcess 返回结果 AudioUrl 字段,2:永久存储音频,需要提工单申请,会产生一定存储费用,3:自定义存储,将音频存储到自定义的腾讯云[对象存储](https://cloud.tencent.com/product/cos)中,需要提工单登记存储信息。
///
[JsonProperty("StorageMode")]
public long? StorageMode{ get; set; }
///
/// 输出断句中间结果标识,0:不输出,1:输出,通过设置该参数,可以在评估过程中的分片传输请求中,返回已经评估断句的中间结果,中间结果可用于客户端 UI 更新,输出结果为TransmitOralProcess请求返回结果 SentenceInfoSet 字段。
///
[JsonProperty("SentenceInfoEnabled")]
public long? SentenceInfoEnabled{ get; set; }
///
/// 评估语言,0:英文,1:中文。
///
[JsonProperty("ServerType")]
public long? ServerType{ get; set; }
///
/// 异步模式标识,0:同步模式,1:异步模式,可选值参考[服务模式](https://cloud.tencent.com/document/product/884/33697)。
///
[JsonProperty("IsAsync")]
public long? IsAsync{ get; set; }
///
/// 输入文本模式,0: 普通文本,1:[音素结构](https://cloud.tencent.com/document/product/884/33698)文本。2:音素注册模式(提工单注册需要使用音素的单词)。
///
[JsonProperty("TextMode")]
public long? TextMode{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
this.SetParamSimple(map, prefix + "RefText", this.RefText);
this.SetParamSimple(map, prefix + "WorkMode", this.WorkMode);
this.SetParamSimple(map, prefix + "EvalMode", this.EvalMode);
this.SetParamSimple(map, prefix + "ScoreCoeff", this.ScoreCoeff);
this.SetParamSimple(map, prefix + "SoeAppId", this.SoeAppId);
this.SetParamSimple(map, prefix + "IsLongLifeSession", this.IsLongLifeSession);
this.SetParamSimple(map, prefix + "StorageMode", this.StorageMode);
this.SetParamSimple(map, prefix + "SentenceInfoEnabled", this.SentenceInfoEnabled);
this.SetParamSimple(map, prefix + "ServerType", this.ServerType);
this.SetParamSimple(map, prefix + "IsAsync", this.IsAsync);
this.SetParamSimple(map, prefix + "TextMode", this.TextMode);
}
}
}