共用方式為


AudioStreamFormat.GetWaveFormat 方法

定義

建立具有指定之曲線特性的音訊資料流程格式物件。

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

參數

samplesPerSecond
UInt32

取樣率,以每秒樣本為單位, (Hertz) 。

bitsPerSample
Byte

每個範例的位。

channels
Byte

波音訊資料中的通道數目。

waveFormat
AudioStreamWaveFormat

WAV 容器內指定的格式。

傳回

正在建立的音訊資料流程格式。

備註

另請參閱:0ab08ec48c1c4778a80e81686d187f5971155fc4ef7c4866b4478aab64a9ac78

適用於