Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

SpeechAudioFormatInfo Constructor (Int32, AudioBitsPerSample, AudioChannel)

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

'Declaration
Public Sub New ( _
    samplesPerSecond As Integer, _
    bitsPerSample As AudioBitsPerSample, _
    channel As AudioChannel _
)
'Usage
Dim samplesPerSecond As Integer
Dim bitsPerSample As AudioBitsPerSample
Dim channel As AudioChannel

Dim instance As New SpeechAudioFormatInfo(samplesPerSecond, _
    bitsPerSample, channel)
public SpeechAudioFormatInfo(
    int samplesPerSecond,
    AudioBitsPerSample bitsPerSample,
    AudioChannel channel
)

Parameters

  • samplesPerSecond
    Type: System.Int32
    An int containing the samples per second value.

See Also

Reference

SpeechAudioFormatInfo Class

SpeechAudioFormatInfo Members

SpeechAudioFormatInfo Overload

Microsoft.Speech.AudioFormat Namespace