Experimental
@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
WavSettingsProps Struct
Properties for WAV codec settings.
| Stability | Experimental |
|---|---|
| Source | lib/audio-codec-settings.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
declare const audioBitDepth: medialive_alpha.AudioBitDepth;
declare const audioSampleRate: medialive_alpha.AudioSampleRate;
declare const wavCodingMode: medialive_alpha.WavCodingMode;
const wavSettingsProps: medialive_alpha.WavSettingsProps = {
bitDepth: audioBitDepth,
codingMode: wavCodingMode,
sampleRate: audioSampleRate,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha
# audio_bit_depth: medialive_alpha.AudioBitDepth
# audio_sample_rate: medialive_alpha.AudioSampleRate
# wav_coding_mode: medialive_alpha.WavCodingMode
wav_settings_props = medialive_alpha.WavSettingsProps(
bit_depth=audio_bit_depth,
coding_mode=wav_coding_mode,
sample_rate=audio_sample_rate
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;
AudioBitDepth audioBitDepth;
AudioSampleRate audioSampleRate;
WavCodingMode wavCodingMode;
WavSettingsProps wavSettingsProps = WavSettingsProps.builder()
.bitDepth(audioBitDepth)
.codingMode(wavCodingMode)
.sampleRate(audioSampleRate)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;
AudioBitDepth audioBitDepth;
AudioSampleRate audioSampleRate;
WavCodingMode wavCodingMode;
var wavSettingsProps = new WavSettingsProps {
BitDepth = audioBitDepth,
CodingMode = wavCodingMode,
SampleRate = audioSampleRate
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"
var audioBitDepth AudioBitDepth
var audioSampleRate AudioSampleRate
var wavCodingMode WavCodingMode
wavSettingsProps := &WavSettingsProps{
BitDepth: audioBitDepth,
CodingMode: wavCodingMode,
SampleRate: audioSampleRate,
}
Properties
bitDepthoptionalAudioBitDepthbit_depthoptionalAudioBitDepthbitDepthoptionalAudioBitDepthBitDepthoptionalAudioBitDepthBitDepthoptionalAudioBitDepth = AudioBitDepth.DEPTH_16 #The bit depth of the WAV output.
codingModeoptionalWavCodingModecoding_modeoptionalWavCodingModecodingModeoptionalWavCodingModeCodingModeoptionalWavCodingModeCodingModeoptionalWavCodingMode = WavCodingMode.CODING_MODE_2_0 #The audio coding mode for the WAV audio.
sampleRateoptionalAudioSampleRatesample_rateoptionalAudioSampleRatesampleRateoptionalAudioSampleRateSampleRateoptionalAudioSampleRateSampleRateoptionalAudioSampleRate = AudioSampleRate.HZ_48000 #The sample rate.