public class KeywordEvaluateRequest extends AbstractModel
Constructor and Description |
---|
KeywordEvaluateRequest() |
KeywordEvaluateRequest(KeywordEvaluateRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getIsEnd()
Get 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
|
Long |
getIsQuery()
Get 查询标识,当该参数为1时,该请求为查询请求,请求返回该 Session 评估结果。
|
Keyword[] |
getKeywords()
Get 关键词列表
|
Long |
getSeqId()
Get 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义,当IsLongLifeSession不为1且为非流式模式时无意义。
注意:序号上限为3000,不能超过上限。
|
String |
getSessionId()
Get 语音段唯一标识,一段完整语音使用一个SessionId,不同语音段的评测需要使用不同的SessionId。一般使用uuid(通用唯一识别码)来作为它的值,要尽量保证SessionId的唯一性。
|
String |
getSoeAppId()
Get 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。
|
String |
getUserVoiceData()
Get 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为1k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
|
Long |
getVoiceEncodeType()
Get 语音编码类型
1:pcm
|
Long |
getVoiceFileType()
Get 语音文件类型
1: raw
2: wav
3: mp3
4: speex
语音文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败。
|
void |
setIsEnd(Long IsEnd)
Set 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。
|
void |
setIsQuery(Long IsQuery)
Set 查询标识,当该参数为1时,该请求为查询请求,请求返回该 Session 评估结果。
|
void |
setKeywords(Keyword[] Keywords)
Set 关键词列表
|
void |
setSeqId(Long SeqId)
Set 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义,当IsLongLifeSession不为1且为非流式模式时无意义。
注意:序号上限为3000,不能超过上限。
|
void |
setSessionId(String SessionId)
Set 语音段唯一标识,一段完整语音使用一个SessionId,不同语音段的评测需要使用不同的SessionId。一般使用uuid(通用唯一识别码)来作为它的值,要尽量保证SessionId的唯一性。
|
void |
setSoeAppId(String SoeAppId)
Set 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。
|
void |
setUserVoiceData(String UserVoiceData)
Set 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为1k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。
|
void |
setVoiceEncodeType(Long VoiceEncodeType)
Set 语音编码类型
1:pcm
|
void |
setVoiceFileType(Long VoiceFileType)
Set 语音文件类型
1: raw
2: wav
3: mp3
4: speex
语音文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public KeywordEvaluateRequest()
public KeywordEvaluateRequest(KeywordEvaluateRequest source)
public Long getSeqId()
public void setSeqId(Long SeqId)
SeqId
- 流式数据包的序号,从1开始,当IsEnd字段为1后后续序号无意义,当IsLongLifeSession不为1且为非流式模式时无意义。
注意:序号上限为3000,不能超过上限。public Long getIsEnd()
public void setIsEnd(Long IsEnd)
IsEnd
- 是否传输完毕标志,若为0表示未完毕,若为1则传输完毕开始评估,非流式模式下无意义。public Long getVoiceFileType()
public void setVoiceFileType(Long VoiceFileType)
VoiceFileType
- 语音文件类型
1: raw
2: wav
3: mp3
4: speex
语音文件格式目前仅支持 16k 采样率 16bit 编码单声道,如有不一致可能导致评估不准确或失败。public Long getVoiceEncodeType()
public void setVoiceEncodeType(Long VoiceEncodeType)
VoiceEncodeType
- 语音编码类型
1:pcmpublic String getUserVoiceData()
public void setUserVoiceData(String UserVoiceData)
UserVoiceData
- 当前数据包数据, 流式模式下数据包大小可以按需设置,在网络良好的情况下,建议设置为1k,且必须保证分片帧完整(16bit的数据必须保证音频长度为偶数),编码格式要求为BASE64。public String getSessionId()
public void setSessionId(String SessionId)
SessionId
- 语音段唯一标识,一段完整语音使用一个SessionId,不同语音段的评测需要使用不同的SessionId。一般使用uuid(通用唯一识别码)来作为它的值,要尽量保证SessionId的唯一性。public Keyword[] getKeywords()
public void setKeywords(Keyword[] Keywords)
Keywords
- 关键词列表public String getSoeAppId()
public void setSoeAppId(String SoeAppId)
SoeAppId
- 业务应用ID,与账号应用APPID无关,是用来方便客户管理服务的参数,新的 SoeAppId 可以在[控制台](https://console.cloud.tencent.com/soe)【应用管理】下新建。如果没有新建SoeAppId,请勿填入该参数,否则会报欠费错误。public Long getIsQuery()
public void setIsQuery(Long IsQuery)
IsQuery
- 查询标识,当该参数为1时,该请求为查询请求,请求返回该 Session 评估结果。Copyright © 2022. All rights reserved.