Share via


AudioStreamFormat.GetWaveFormat Methode

Definition

Erstellt ein Audiostreamformatobjekt mit den angegebenen Wellenformateigenschaften.

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

Parameter

samplesPerSecond
UInt32

Abtastrate in Stichproben pro Sekunde (Hertz).

bitsPerSample
Byte

Bits pro Beispiel.

channels
Byte

Anzahl der Kanäle in den Waveform-Audiodaten.

waveFormat
AudioStreamWaveFormat

Das im WAV-Container angegebene Format.

Gibt zurück

Das Audiostreamformat, das erstellt wird.

Hinweise

Weitere Informationen:

Gilt für: