AudioStreamFormat.GetWaveFormat 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立具有指定之曲線特性的音訊資料流程格式物件。
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