Share 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 exemplo, em amostras por segundo (Hertz).

bitsPerSample
Byte

Bits por exemplo.

channels
Byte

Número de canais nos dados waveform-audio.

waveFormat
AudioStreamWaveFormat

O formato especificado no contentor WAV.

Devoluções

O formato de fluxo de áudio que está a ser criado.

Observações

Consulte também: 0ab08ec48c1c4778a80e81686d187f5971155fc4ef7c4866b4478aab64a9ac78

Aplica-se a