AudioMetadata Class

public final class AudioMetadata
extends StreamingData

The MediaStreamingMetadata model.

Method Summary

Modifier and Type Method and Description
AudioChannelType getChannelType()

Specifies the number of audio channels in the audio configuration.

String getEncoding()

The format used to encode the audio.

String getMediaSubscriptionId()

A unique identifier for the media subscription.

int getSampleRate()

The number of samples per second in the audio.

Methods inherited from StreamingData

Methods inherited from java.lang.Object

Method Details

getChannelType

public AudioChannelType getChannelType()

Specifies the number of audio channels in the audio configuration. Currently, only "mono" (single channel) is supported. Get the channels property.

Returns:

the channels value.

getEncoding

public String getEncoding()

The format used to encode the audio. Currently, only "pcm" (Pulse Code Modulation) is supported. Get the encoding property.

Returns:

the encoding value.

getMediaSubscriptionId

public String getMediaSubscriptionId()

A unique identifier for the media subscription. Get the mediaSubscriptionId property.

Returns:

the mediaSubscriptionId value.

getSampleRate

public int getSampleRate()

The number of samples per second in the audio. Supported values are 16kHz or 24kHz. Get the sampleRate property.

Returns:

the sampleRate value.

Applies to