SpeechAudioFormatInfo 类

定义

表示有关音频格式的信息。Represents information about an audio format.

public ref class SpeechAudioFormatInfo
[System.Serializable]
public class SpeechAudioFormatInfo
[<System.Serializable>]
type SpeechAudioFormatInfo = class
Public Class SpeechAudioFormatInfo
继承
SpeechAudioFormatInfo
属性

构造函数

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

初始化 SpeechAudioFormatInfo 类的新实例并指定编码格式、每秒的示例、每个示例的位数、通道的数目、每秒平均字节、块对齐值和包含格式特定数据的数组。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.

SpeechAudioFormatInfo(Int32, AudioBitsPerSample, AudioChannel)

初始化 SpeechAudioFormatInfo 类的新实例并指定每秒示例、每个示例的位数和通道的数目。Initializes a new instance of the SpeechAudioFormatInfo class and specifies the samples per second, bits per sample, and the number of channels.

属性

AverageBytesPerSecond

获取音频的每秒平均字节数。Gets the average bytes per second of the audio.

BitsPerSample

获取音频的每样本位数。Gets the bits per sample of the audio.

BlockAlign

获取或设置字节中的块对齐。Gets or sets the block alignment in bytes.

ChannelCount

获取音频的通道计数。Gets the channel count of the audio.

EncodingFormat

获取这种音频的编码格式。Gets the encoding format of the audio.

SamplesPerSecond

获取音频格式的每秒样本数。Gets the samples per second of the audio format.

方法

Equals(Object)

返回给定的对象是否为 SpeechAudioFormatInfo 的实例,并与当前 SpeechAudioFormatInfo 实例相等。Returns whether a given object is an instance of SpeechAudioFormatInfo and equal to the current instance of SpeechAudioFormatInfo.

FormatSpecificData()

返回音频格式的格式特定数据。Returns the format-specific data of the audio format.

GetHashCode()

返回音频格式的哈希代码。Returns the hash code of the audio format.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于