Condividi tramite


AudioStreamFormat.GetWaveFormat Metodo

Definizione

Crea un oggetto formato flusso audio con le caratteristiche di waveformat specificate.

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

Parametri

samplesPerSecond
UInt32

Frequenza di campionamento, in campioni al secondo (Hz).

bitsPerSample
Byte

Bit per campione.

channels
Byte

Numero di canali nei dati audio waveform.

waveFormat
AudioStreamWaveFormat

Formato specificato all'interno del contenitore WAV.

Restituisce

Formato del flusso audio creato.

Commenti

Vedere anche: 0ab08ec48c1c4778a80e81686d187f5971155fc4ef7c486b4478aab64a9ac78

Si applica a