Compartilhar via


AudioStreamFormat.GetWaveFormat Método

Definição

Cria um objeto de formato de fluxo de áudio com as características de formatação de onda especificadas.

public static Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat GetWaveFormat (uint samplesPerSecond, byte bitsPerSample, byte channels, Microsoft.CognitiveServices.Speech.Audio.AudioStreamWaveFormat waveFormat);
static member GetWaveFormat : uint32 * byte * byte * Microsoft.CognitiveServices.Speech.Audio.AudioStreamWaveFormat -> Microsoft.CognitiveServices.Speech.Audio.AudioStreamFormat
Public Shared Function GetWaveFormat (samplesPerSecond As UInteger, bitsPerSample As Byte, channels As Byte, waveFormat As AudioStreamWaveFormat) As AudioStreamFormat

Parâmetros

samplesPerSecond
UInt32

Taxa de amostragem, em amostras por segundo (Hertz).

bitsPerSample
Byte

Bits por exemplo.

channels
Byte

Número de canais nos dados de áudio de forma de onda.

waveFormat
AudioStreamWaveFormat

O formato especificado dentro do contêiner WAV.

Retornos

O formato de fluxo de áudio que está sendo criado.

Comentários

Consulte também:

Aplica-se a