All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.tci.v20190318.models.SubmitAudioTaskRequest 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 SubmitAudioTaskRequest extends AbstractModel{

    /**
    * 音频源的语言,默认0为英文,1为中文
    */
    @SerializedName("Lang")
    @Expose
    private Long Lang;

    /**
    * 音频URL。客户请求为URL方式时必须带此字段指名音频的url。
    */
    @SerializedName("Url")
    @Expose
    private String Url;

    /**
    * 语音编码类型 1:pcm
    */
    @SerializedName("VoiceEncodeType")
    @Expose
    private Long VoiceEncodeType;

    /**
    * 语音文件类型 1:raw, 2:wav, 3:mp3,10:视频(三种音频格式目前仅支持16k采样率16bit)
    */
    @SerializedName("VoiceFileType")
    @Expose
    private Long VoiceFileType;

    /**
    * 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
    */
    @SerializedName("Functions")
    @Expose
    private Function Functions;

    /**
    * 视频文件类型,默认点播,直播填 live_url
    */
    @SerializedName("FileType")
    @Expose
    private String FileType;

    /**
    * 静音阈值设置,如果静音检测开关开启,则静音时间超过这个阈值认为是静音片段,在结果中会返回, 没给的话默认值为3s
    */
    @SerializedName("MuteThreshold")
    @Expose
    private Long MuteThreshold;

    /**
    * 识别词库名列表,评估过程使用这些词汇库中的词汇进行词汇使用行为分析
    */
    @SerializedName("VocabLibNameList")
    @Expose
    private String [] VocabLibNameList;

    /**
     * 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 音频URL。客户请求为URL方式时必须带此字段指名音频的url。 
     * @return Url 音频URL。客户请求为URL方式时必须带此字段指名音频的url。
     */
    public String getUrl() {
        return this.Url;
    }

    /**
     * Set 音频URL。客户请求为URL方式时必须带此字段指名音频的url。
     * @param Url 音频URL。客户请求为URL方式时必须带此字段指名音频的url。
     */
    public void setUrl(String Url) {
        this.Url = Url;
    }

    /**
     * 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,10:视频(三种音频格式目前仅支持16k采样率16bit) 
     * @return VoiceFileType 语音文件类型 1:raw, 2:wav, 3:mp3,10:视频(三种音频格式目前仅支持16k采样率16bit)
     */
    public Long getVoiceFileType() {
        return this.VoiceFileType;
    }

    /**
     * Set 语音文件类型 1:raw, 2:wav, 3:mp3,10:视频(三种音频格式目前仅支持16k采样率16bit)
     * @param VoiceFileType 语音文件类型 1:raw, 2:wav, 3:mp3,10:视频(三种音频格式目前仅支持16k采样率16bit)
     */
    public void setVoiceFileType(Long VoiceFileType) {
        this.VoiceFileType = VoiceFileType;
    }

    /**
     * Get 功能开关列表,表示是否需要打开相应的功能,返回相应的信息 
     * @return Functions 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
     */
    public Function getFunctions() {
        return this.Functions;
    }

    /**
     * Set 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
     * @param Functions 功能开关列表,表示是否需要打开相应的功能,返回相应的信息
     */
    public void setFunctions(Function Functions) {
        this.Functions = Functions;
    }

    /**
     * Get 视频文件类型,默认点播,直播填 live_url 
     * @return FileType 视频文件类型,默认点播,直播填 live_url
     */
    public String getFileType() {
        return this.FileType;
    }

    /**
     * Set 视频文件类型,默认点播,直播填 live_url
     * @param FileType 视频文件类型,默认点播,直播填 live_url
     */
    public void setFileType(String FileType) {
        this.FileType = FileType;
    }

    /**
     * Get 静音阈值设置,如果静音检测开关开启,则静音时间超过这个阈值认为是静音片段,在结果中会返回, 没给的话默认值为3s 
     * @return MuteThreshold 静音阈值设置,如果静音检测开关开启,则静音时间超过这个阈值认为是静音片段,在结果中会返回, 没给的话默认值为3s
     */
    public Long getMuteThreshold() {
        return this.MuteThreshold;
    }

    /**
     * Set 静音阈值设置,如果静音检测开关开启,则静音时间超过这个阈值认为是静音片段,在结果中会返回, 没给的话默认值为3s
     * @param MuteThreshold 静音阈值设置,如果静音检测开关开启,则静音时间超过这个阈值认为是静音片段,在结果中会返回, 没给的话默认值为3s
     */
    public void setMuteThreshold(Long MuteThreshold) {
        this.MuteThreshold = MuteThreshold;
    }

    /**
     * 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.setParamSimple(map, prefix + "Lang", this.Lang);
        this.setParamSimple(map, prefix + "Url", this.Url);
        this.setParamSimple(map, prefix + "VoiceEncodeType", this.VoiceEncodeType);
        this.setParamSimple(map, prefix + "VoiceFileType", this.VoiceFileType);
        this.setParamObj(map, prefix + "Functions.", this.Functions);
        this.setParamSimple(map, prefix + "FileType", this.FileType);
        this.setParamSimple(map, prefix + "MuteThreshold", this.MuteThreshold);
        this.setParamArraySimple(map, prefix + "VocabLibNameList.", this.VocabLibNameList);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy