
com.tencentcloudapi.vod.v20180717.models.RebuildMediaTargetAudioStream 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.vod.v20180717.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class RebuildMediaTargetAudioStream extends AbstractModel {
/**
* The audio codec.
If `Container` is `mp3`, the valid value is:
`libmp3lame`
If `Container` is `ogg` or `flac`, the valid value is:
`flac`
If `Container` is `m4a`, the valid values are:
`libfdk_aac`
`libmp3lame`
`ac3`
If `Container` is `mp4` or `flv`, the valid values are:
`libfdk_aac` (Recommended for MP4)
`libmp3lame` (Recommended for FLV)
`mp2`
If `Container` is `hls`, the valid value is:
`libfdk_aac`
*/
@SerializedName("Codec")
@Expose
private String Codec;
/**
* The audio bitrate, in Kbps. Value range: 0 and 26-256.
If the value is `0`, the original audio bitrate will be used.
*/
@SerializedName("Bitrate")
@Expose
private Long Bitrate;
/**
* The audio sample rate. Valid values:
`32000`
`44100`
`48000`
Unit: Hz.
*/
@SerializedName("SampleRate")
@Expose
private Long SampleRate;
/**
* The audio channels. Valid values:
`1`: Mono-channel
`2`: Dual-channel
`6`: Stereo
You cannot set this parameter to `6` if the container format is an audio format (FLAC, OGG, MP3, M4A).
Default value: `2`.
*/
@SerializedName("AudioChannel")
@Expose
private Long AudioChannel;
/**
* Get The audio codec.
If `Container` is `mp3`, the valid value is:
`libmp3lame`
If `Container` is `ogg` or `flac`, the valid value is:
`flac`
If `Container` is `m4a`, the valid values are:
`libfdk_aac`
`libmp3lame`
`ac3`
If `Container` is `mp4` or `flv`, the valid values are:
`libfdk_aac` (Recommended for MP4)
`libmp3lame` (Recommended for FLV)
`mp2`
If `Container` is `hls`, the valid value is:
`libfdk_aac`
* @return Codec The audio codec.
If `Container` is `mp3`, the valid value is:
`libmp3lame`
If `Container` is `ogg` or `flac`, the valid value is:
`flac`
If `Container` is `m4a`, the valid values are:
`libfdk_aac`
`libmp3lame`
`ac3`
If `Container` is `mp4` or `flv`, the valid values are:
`libfdk_aac` (Recommended for MP4)
`libmp3lame` (Recommended for FLV)
`mp2`
If `Container` is `hls`, the valid value is:
`libfdk_aac`
*/
public String getCodec() {
return this.Codec;
}
/**
* Set The audio codec.
If `Container` is `mp3`, the valid value is:
`libmp3lame`
If `Container` is `ogg` or `flac`, the valid value is:
`flac`
If `Container` is `m4a`, the valid values are:
`libfdk_aac`
`libmp3lame`
`ac3`
If `Container` is `mp4` or `flv`, the valid values are:
`libfdk_aac` (Recommended for MP4)
`libmp3lame` (Recommended for FLV)
`mp2`
If `Container` is `hls`, the valid value is:
`libfdk_aac`
* @param Codec The audio codec.
If `Container` is `mp3`, the valid value is:
`libmp3lame`
If `Container` is `ogg` or `flac`, the valid value is:
`flac`
If `Container` is `m4a`, the valid values are:
`libfdk_aac`
`libmp3lame`
`ac3`
If `Container` is `mp4` or `flv`, the valid values are:
`libfdk_aac` (Recommended for MP4)
`libmp3lame` (Recommended for FLV)
`mp2`
If `Container` is `hls`, the valid value is:
`libfdk_aac`
*/
public void setCodec(String Codec) {
this.Codec = Codec;
}
/**
* Get The audio bitrate, in Kbps. Value range: 0 and 26-256.
If the value is `0`, the original audio bitrate will be used.
* @return Bitrate The audio bitrate, in Kbps. Value range: 0 and 26-256.
If the value is `0`, the original audio bitrate will be used.
*/
public Long getBitrate() {
return this.Bitrate;
}
/**
* Set The audio bitrate, in Kbps. Value range: 0 and 26-256.
If the value is `0`, the original audio bitrate will be used.
* @param Bitrate The audio bitrate, in Kbps. Value range: 0 and 26-256.
If the value is `0`, the original audio bitrate will be used.
*/
public void setBitrate(Long Bitrate) {
this.Bitrate = Bitrate;
}
/**
* Get The audio sample rate. Valid values:
`32000`
`44100`
`48000`
Unit: Hz.
* @return SampleRate The audio sample rate. Valid values:
`32000`
`44100`
`48000`
Unit: Hz.
*/
public Long getSampleRate() {
return this.SampleRate;
}
/**
* Set The audio sample rate. Valid values:
`32000`
`44100`
`48000`
Unit: Hz.
* @param SampleRate The audio sample rate. Valid values:
`32000`
`44100`
`48000`
Unit: Hz.
*/
public void setSampleRate(Long SampleRate) {
this.SampleRate = SampleRate;
}
/**
* Get The audio channels. Valid values:
`1`: Mono-channel
`2`: Dual-channel
`6`: Stereo
You cannot set this parameter to `6` if the container format is an audio format (FLAC, OGG, MP3, M4A).
Default value: `2`.
* @return AudioChannel The audio channels. Valid values:
`1`: Mono-channel
`2`: Dual-channel
`6`: Stereo
You cannot set this parameter to `6` if the container format is an audio format (FLAC, OGG, MP3, M4A).
Default value: `2`.
*/
public Long getAudioChannel() {
return this.AudioChannel;
}
/**
* Set The audio channels. Valid values:
`1`: Mono-channel
`2`: Dual-channel
`6`: Stereo
You cannot set this parameter to `6` if the container format is an audio format (FLAC, OGG, MP3, M4A).
Default value: `2`.
* @param AudioChannel The audio channels. Valid values:
`1`: Mono-channel
`2`: Dual-channel
`6`: Stereo
You cannot set this parameter to `6` if the container format is an audio format (FLAC, OGG, MP3, M4A).
Default value: `2`.
*/
public void setAudioChannel(Long AudioChannel) {
this.AudioChannel = AudioChannel;
}
public RebuildMediaTargetAudioStream() {
}
/**
* 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.
*/
public RebuildMediaTargetAudioStream(RebuildMediaTargetAudioStream source) {
if (source.Codec != null) {
this.Codec = new String(source.Codec);
}
if (source.Bitrate != null) {
this.Bitrate = new Long(source.Bitrate);
}
if (source.SampleRate != null) {
this.SampleRate = new Long(source.SampleRate);
}
if (source.AudioChannel != null) {
this.AudioChannel = new Long(source.AudioChannel);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Codec", this.Codec);
this.setParamSimple(map, prefix + "Bitrate", this.Bitrate);
this.setParamSimple(map, prefix + "SampleRate", this.SampleRate);
this.setParamSimple(map, prefix + "AudioChannel", this.AudioChannel);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy