AudioStreamFormat.GetWaveFormat 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 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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for .NET