
com.tencentcloudapi.tci.v20190318.models.TransmitAudioStreamRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-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.
*/
package com.tencentcloudapi.tci.v20190318.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class TransmitAudioStreamRequest extends AbstractModel{
/**
* 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
*/
@SerializedName("Functions")
@Expose
private Function Functions;
/**
* 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义。
*/
@SerializedName("SeqId")
@Expose
private Long SeqId;
/**
* 语音段唯一标识,一个完整语音一个SessionId。
*/
@SerializedName("SessionId")
@Expose
private String SessionId;
/**
* 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为0.5k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
*/
@SerializedName("UserVoiceData")
@Expose
private String UserVoiceData;
/**
* 语音编码类型 1:pcm。
*/
@SerializedName("VoiceEncodeType")
@Expose
private Long VoiceEncodeType;
/**
* 语音文件类型 1: raw, 2: wav, 3: mp3 (语言文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败)。
*/
@SerializedName("VoiceFileType")
@Expose
private Long VoiceFileType;
/**
* 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
*/
@SerializedName("IsEnd")
@Expose
private Long IsEnd;
/**
* 音频源的语言,默认0为英文,1为中文
*/
@SerializedName("Lang")
@Expose
private Long Lang;
/**
* 是否临时保存 音频链接
*/
@SerializedName("StorageMode")
@Expose
private Long StorageMode;
/**
* 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
*/
@SerializedName("VocabLibNameList")
@Expose
private String [] VocabLibNameList;
/**
* Get 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
* @return Functions 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
*/
public Function getFunctions() {
return this.Functions;
}
/**
* Set 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
* @param Functions 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
*/
public void setFunctions(Function Functions) {
this.Functions = Functions;
}
/**
* Get 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义。
* @return SeqId 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义。
*/
public Long getSeqId() {
return this.SeqId;
}
/**
* Set 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义。
* @param SeqId 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义。
*/
public void setSeqId(Long SeqId) {
this.SeqId = SeqId;
}
/**
* Get 语音段唯一标识,一个完整语音一个SessionId。
* @return SessionId 语音段唯一标识,一个完整语音一个SessionId。
*/
public String getSessionId() {
return this.SessionId;
}
/**
* Set 语音段唯一标识,一个完整语音一个SessionId。
* @param SessionId 语音段唯一标识,一个完整语音一个SessionId。
*/
public void setSessionId(String SessionId) {
this.SessionId = SessionId;
}
/**
* Get 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为0.5k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
* @return UserVoiceData 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为0.5k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
*/
public String getUserVoiceData() {
return this.UserVoiceData;
}
/**
* Set 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为0.5k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
* @param UserVoiceData 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为0.5k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
*/
public void setUserVoiceData(String UserVoiceData) {
this.UserVoiceData = UserVoiceData;
}
/**
* Get 语音编码类型 1:pcm。
* @return VoiceEncodeType 语音编码类型 1:pcm。
*/
public Long getVoiceEncodeType() {
return this.VoiceEncodeType;
}
/**
* Set 语音编码类型 1:pcm。
* @param VoiceEncodeType 语音编码类型 1:pcm。
*/
public void setVoiceEncodeType(Long VoiceEncodeType) {
this.VoiceEncodeType = VoiceEncodeType;
}
/**
* Get 语音文件类型 1: raw, 2: wav, 3: mp3 (语言文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败)。
* @return VoiceFileType 语音文件类型 1: raw, 2: wav, 3: mp3 (语言文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败)。
*/
public Long getVoiceFileType() {
return this.VoiceFileType;
}
/**
* Set 语音文件类型 1: raw, 2: wav, 3: mp3 (语言文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败)。
* @param VoiceFileType 语音文件类型 1: raw, 2: wav, 3: mp3 (语言文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败)。
*/
public void setVoiceFileType(Long VoiceFileType) {
this.VoiceFileType = VoiceFileType;
}
/**
* Get 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
* @return IsEnd 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
*/
public Long getIsEnd() {
return this.IsEnd;
}
/**
* Set 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
* @param IsEnd 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
*/
public void setIsEnd(Long IsEnd) {
this.IsEnd = IsEnd;
}
/**
* Get 音频源的语言,默认0为英文,1为中文
* @return Lang 音频源的语言,默认0为英文,1为中文
*/
public Long getLang() {
return this.Lang;
}
/**
* Set 音频源的语言,默认0为英文,1为中文
* @param Lang 音频源的语言,默认0为英文,1为中文
*/
public void setLang(Long Lang) {
this.Lang = Lang;
}
/**
* Get 是否临时保存 音频链接
* @return StorageMode 是否临时保存 音频链接
*/
public Long getStorageMode() {
return this.StorageMode;
}
/**
* Set 是否临时保存 音频链接
* @param StorageMode 是否临时保存 音频链接
*/
public void setStorageMode(Long StorageMode) {
this.StorageMode = StorageMode;
}
/**
* Get 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
* @return VocabLibNameList 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
*/
public String [] getVocabLibNameList() {
return this.VocabLibNameList;
}
/**
* Set 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
* @param VocabLibNameList 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
*/
public void setVocabLibNameList(String [] VocabLibNameList) {
this.VocabLibNameList = VocabLibNameList;
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamObj(map, prefix + "Functions.", this.Functions);
this.setParamSimple(map, prefix + "SeqId", this.SeqId);
this.setParamSimple(map, prefix + "SessionId", this.SessionId);
this.setParamSimple(map, prefix + "UserVoiceData", this.UserVoiceData);
this.setParamSimple(map, prefix + "VoiceEncodeType", this.VoiceEncodeType);
this.setParamSimple(map, prefix + "VoiceFileType", this.VoiceFileType);
this.setParamSimple(map, prefix + "IsEnd", this.IsEnd);
this.setParamSimple(map, prefix + "Lang", this.Lang);
this.setParamSimple(map, prefix + "StorageMode", this.StorageMode);
this.setParamArraySimple(map, prefix + "VocabLibNameList.", this.VocabLibNameList);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy