Skip to content
v2.278.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AudioSampleRate Class ​

Audio sample rate for AAC, MP2, and WAV codecs.

Use one of the standard presets or AudioSampleRate.of(hz) for a custom value.

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';
const audioSampleRate = medialive_alpha.AudioSampleRate.HZ_12000;
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_sample_rate = medialive_alpha.AudioSampleRate.HZ_12000
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.*;

AudioSampleRate audioSampleRate = AudioSampleRate.HZ_12000;
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;

var audioSampleRate = AudioSampleRate.HZ_12000;
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"

audioSampleRate := medialive_alpha.AudioSampleRate_HZ_12000()

Properties ​

12,000 Hz.
16,000 Hz.
22,050 Hz.
24,000 Hz.
32,000 Hz.
44,100 Hz.
48,000 Hz.
8,000 Hz.
88,200 Hz.
96,000 Hz.

Methods ​

of(hz: number): AudioSampleRate // chainable@staticmethod def of(hz: int | float) -> AudioSampleRatepublic static AudioSampleRate of(Number hz)public static AudioSampleRate Of(double hz)func Of(Hz *float64) AudioSampleRate static #
A custom sample rate in Hz.
1 parameter

Parameters

  • hzhzhzhzHz — the sample rate in Hz.