![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
SpeechAudioFormatInfo Constructor (Int32, AudioBitsPerSample, AudioChannel) |
SpeechAudioFormatInfo Class See Also Send Feedback |
Initializes a new instance of the SpeechAudioFormatInfo class and specifies the samples per second, bits per sample, and the number of channels.
Namespace:
Microsoft.Speech.AudioFormat
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _ samplesPerSecond As Integer, _ bitsPerSample As AudioBitsPerSample, _ channel As AudioChannel _ ) |
Visual Basic (Usage) |
---|
Dim samplesPerSecond As Integer Dim bitsPerSample As AudioBitsPerSample Dim channel As AudioChannel Dim instance As New SpeechAudioFormatInfo(samplesPerSecond, _ bitsPerSample, channel) |
C# |
---|
public SpeechAudioFormatInfo( int samplesPerSecond, AudioBitsPerSample bitsPerSample, AudioChannel channel ) |
Parameters
- samplesPerSecond
- Type: System..::..Int32
An int containing the samples per second value.
- bitsPerSample
- Type: Microsoft.Speech.AudioFormat..::..AudioBitsPerSample
An int containing the bits per sample value.
- channel
- Type: Microsoft.Speech.AudioFormat..::..AudioChannel
A member of the AudioChannel enumeration (ie., Mono or Stereo).