AudioStreamFormat.GetWaveFormatPCM(UInt32, Byte, Byte) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET