Files
g.hnyhua.cn/TencentCloud/Soe/V20180724/Models/TransmitOralProcessRequest.cs

100 lines
4.2 KiB
C#
Raw Permalink Normal View History

/*
* 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 TransmitOralProcessRequest : AbstractModel
{
/// <summary>
/// 流式数据包的序号从1开始当IsEnd字段为1后后续序号无意义当IsLongLifeSession不为1且为非流式模式时无意义。
/// </summary>
[JsonProperty("SeqId")]
public long? SeqId{ get; set; }
/// <summary>
/// 是否传输完毕标志若为0表示未完毕若为1则传输完毕开始评估非流式模式下无意义。
/// </summary>
[JsonProperty("IsEnd")]
public long? IsEnd{ get; set; }
/// <summary>
/// 语音文件类型 1:raw, 2:wav, 3:mp3(三种格式目前仅支持16k采样率16bit编码单声道如有不一致可能导致评估不准确或失败)。
/// </summary>
[JsonProperty("VoiceFileType")]
public long? VoiceFileType{ get; set; }
/// <summary>
/// 语音编码类型 1:pcm。
/// </summary>
[JsonProperty("VoiceEncodeType")]
public long? VoiceEncodeType{ get; set; }
/// <summary>
/// 当前数据包数据, 流式模式下数据包大小可以按需设置在网络稳定时分片大小建议设置0.5k且必须保证分片帧完整16bit的数据必须保证音频长度为偶数编码格式要求为BASE64。
/// </summary>
[JsonProperty("UserVoiceData")]
public string UserVoiceData{ get; set; }
/// <summary>
/// 语音段唯一标识一个完整语音一个SessionId。
/// </summary>
[JsonProperty("SessionId")]
public string SessionId{ get; set; }
/// <summary>
/// 业务应用ID与账号应用APPID无关是用来方便客户管理服务的参数新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。
/// </summary>
[JsonProperty("SoeAppId")]
public string SoeAppId{ get; set; }
/// <summary>
/// 长效session标识当该参数为1时session的持续时间为300s但会一定程度上影响第一个数据包的返回速度。当InitOralProcess接口调用时此项为1时此项必填1才可生效。
/// </summary>
[JsonProperty("IsLongLifeSession")]
public long? IsLongLifeSession{ get; set; }
/// <summary>
/// 查询标识当该参数为1时该请求为查询请求请求返回该 Session 的评估结果。
/// </summary>
[JsonProperty("IsQuery")]
public long? IsQuery{ 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 + "SeqId", this.SeqId);
this.SetParamSimple(map, prefix + "IsEnd", this.IsEnd);
this.SetParamSimple(map, prefix + "VoiceFileType", this.VoiceFileType);
this.SetParamSimple(map, prefix + "VoiceEncodeType", this.VoiceEncodeType);
this.SetParamSimple(map, prefix + "UserVoiceData", this.UserVoiceData);
this.SetParamSimple(map, prefix + "SessionId", this.SessionId);
this.SetParamSimple(map, prefix + "SoeAppId", this.SoeAppId);
this.SetParamSimple(map, prefix + "IsLongLifeSession", this.IsLongLifeSession);
this.SetParamSimple(map, prefix + "IsQuery", this.IsQuery);
}
}
}