Click or drag to resize
SpeechAudioFormat Class
The SpeechAudioFormat contains information about how the audio data was recorded and stored including the type of compression used, number of channels, sample rate, bits per sample and other attributes.
Inheritance Hierarchy
Object
  Microsoft.CognitiveServices.SpeechRecognitionSpeechAudioFormat

Namespace: Microsoft.CognitiveServices.SpeechRecognition
Assembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax
public class SpeechAudioFormat

The SpeechAudioFormat type exposes the following members.

Constructors
  NameDescription
Public methodSpeechAudioFormat
The SpeechAudioFormat contains information about how the audio data was recorded and stored including the type of compression used, number of channels, sample rate, bits per sample and other attributes.
Top
Methods
  NameDescription
Public methodStatic membercreate16BitPCMFormat
Produces a SpeechAudioFormat for 16-bit PCM data.
Public methodStatic membercreateSiren7Format
Produces a SpeechAudioFormat for data encoded in Siren7. The data must be encoded in mono, such that a 320 sample mono input frame produces a 40 bytes output frame.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAverageBytesPerSecond
This value indicates how many bytes of audio data must be streamed to a D/A converter per second in order to play the audio.
Public fieldBitsPerSample
The number of significant bits in each audio sample. Usually 16 or 24.
Public fieldBlockAlign
The number of data bytes per sample slice.
Public fieldChannelCount
The number of separate audio signals in the audio data. A value of 1 means a mono signal, a value of 2 means a stereo signal, etc.
Public fieldEncodingFormat
Specifies the type of compression used on the audio data as a short. Default value is 1 (which means PCM) Use getEncodingFormat or setEncodingFormat to use this short as a AudioCompressionType.
Public fieldFormatSpecificData
Extra bytes for use to describe parameters to certain audio compression types. This field should be empty for PCM.
Public fieldSamplesPerSecond
Audio sample slices per second (one slice includes all the channel samples). Thus this value is unaffected by the number of channels.
Top
See Also