Share via


AudioStreamFormat.GetWaveFormat Method

Definition

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

public static Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat GetWaveFormat (uint samplesPerSecond, byte bitsPerSample, byte channels, Microsoft.CognitiveServices.Speech.Audio.AudioStreamWaveFormat waveFormat);
static member GetWaveFormat : uint32 * byte * byte * Microsoft.CognitiveServices.Speech.Audio.AudioStreamWaveFormat -> Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat
Public Shared Function GetWaveFormat (samplesPerSecond As UInteger, bitsPerSample As Byte, channels As Byte, waveFormat As AudioStreamWaveFormat) 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.

waveFormat
AudioStreamWaveFormat

The format specified inside the WAV container.

Returns

The audio stream format being created.

Remarks

See also:

Applies to