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:   System.Speech.AudioFormat
Assembly:  System.Speech (in System.Speech.dll)

public SpeechAudioFormatInfo(
	EncodingFormat encodingFormat,
	int samplesPerSecond,
	int bitsPerSample,
	int channelCount,
	int averageBytesPerSecond,
	int blockAlign,
	byte[] formatSpecificData
)

Parameters

encodingFormat
Type: System.Speech.AudioFormat.EncodingFormat

The encoding format.

samplesPerSecond
Type: System.Int32

The value for the samples per second.

bitsPerSample
Type: System.Int32

The value for the bits per sample.

channelCount
Type: System.Int32

The value for the channel count.

averageBytesPerSecond
Type: System.Int32

The value for the average bytes per second.

blockAlign
Type: System.Int32

The value for the BlockAlign.

formatSpecificData
Type: System.Byte[]

A byte array containing the format-specific data.

.NET Framework
Available since 3.0
Return to top
Show: