Compartilhar via


Note

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

SpeechAudioFormatInfo Constructor (EncodingFormat, Int32, Int32, Int32, Int32, Int32, Byte[])

Initializes a new instance of the SpeechAudioFormatInfo class and specifies the encoding format, samples per second, bits per sample, number of channels, average bytes per second, block alignment value, and an array containing format-specific data.

Namespace:  Microsoft.Speech.AudioFormat
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

'Declaration
Public Sub New ( _
    encodingFormat As EncodingFormat, _
    samplesPerSecond As Integer, _
    bitsPerSample As Integer, _
    channelCount As Integer, _
    averageBytesPerSecond As Integer, _
    blockAlign As Integer, _
    formatSpecificData As Byte() _
)
'Usage
Dim encodingFormat As EncodingFormat
Dim samplesPerSecond As Integer
Dim bitsPerSample As Integer
Dim channelCount As Integer
Dim averageBytesPerSecond As Integer
Dim blockAlign As Integer
Dim formatSpecificData As Byte()

Dim instance As New SpeechAudioFormatInfo(encodingFormat, _
    samplesPerSecond, bitsPerSample, _
    channelCount, averageBytesPerSecond, _
    blockAlign, formatSpecificData)
public SpeechAudioFormatInfo(
    EncodingFormat encodingFormat,
    int samplesPerSecond,
    int bitsPerSample,
    int channelCount,
    int averageBytesPerSecond,
    int blockAlign,
    byte[] formatSpecificData
)

Parameters

  • samplesPerSecond
    Type: System.Int32
    An int containing the samples per second value.
  • bitsPerSample
    Type: System.Int32
    An int containing the bits per sample value.
  • channelCount
    Type: System.Int32
    An int containing the channel count value.
  • averageBytesPerSecond
    Type: System.Int32
    An int containing the average bytes per second value.
  • blockAlign
    Type: System.Int32
    An int containing the BlockAlign value.
  • formatSpecificData
    Type: []
    A byte array containing the format-specific data.

See Also

Reference

SpeechAudioFormatInfo Class

SpeechAudioFormatInfo Members

SpeechAudioFormatInfo Overload

Microsoft.Speech.AudioFormat Namespace