Share via


AudioStreamFormat.GetWaveFormatPCM(UInt32, Byte, Byte) Method

Definition

Creates an audio stream format object with the specified PCM waveformat characteristics.

public static Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat GetWaveFormatPCM (uint samplesPerSecond, byte bitsPerSample, byte channels);
static member GetWaveFormatPCM : uint32 * byte * byte -> Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat
Public Shared Function GetWaveFormatPCM (samplesPerSecond As UInteger, bitsPerSample As Byte, channels As Byte) As AudioStreamFormat

Parameters

samplesPerSecond
UInt32

Sample rate, in samples per second (Hertz).

bitsPerSample
Byte

Bits per sample.

channels
Byte

Number of channels in the waveform-audio data.

Returns

The audio stream format being created.

Remarks

See also:

Applies to