Click or drag to resize
SpeechDecoder Class
SpeechDecoder handles the decoding of speech audio frames.
Inheritance Hierarchy
SystemObject
  StreamCoders.DecoderSpeechDecoder

Namespace: StreamCoders.Decoder
Assembly: MediaSuite (in MediaSuite.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
public class SpeechDecoder : IDisposable

The SpeechDecoder type exposes the following members.

Constructors
  NameDescription
Public methodSpeechDecoder
Default constructor.
Top
Properties
  NameDescription
Public propertyCode exampleBitrate
Represents the bitrate the currently selected codec is using.
Public propertyMaximumInputDataLength
Set/Get the maximum size of the input data in bytes that can be decoded at once.
Public propertyCode exampleStreamType
Gets or sets or Sets the StreamType property.
Top
Methods
  NameDescription
Public methodDecode(OffsetBufferByte)
Public methodDecode(RtpFrame)
Decodes RTPFrames containing speech data.
Public methodDecode(RtpPacket)
Decodes.
Public methodCode exampleDecode(Byte, Int32, Int32)
Decodes a byte array to PCM.
Note: The size of the input data is dependent on the value of MaximumInputDataLength
Public methodDispose
Destructor.
Public methodGetCodec
Gets the currently selected codec.
Public methodInit
Initializes the SpeechDecoder.
Public methodSetCodec(Codec)
Sets the codec type of the data to be decoded and default frame duration.
Public methodSetCodec(Codec, Int32)
Sets the codec type of the data to be decoded and default frame duration.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
Remarks

SpeechDecoder handles 16-bit sample sizes and 1 channel.

Supported codecs are:

  • G711A
  • G711U
  • G722
  • G722SB
  • G723
  • G726 (Re-amplified)
  • G728
  • G729A
  • AMRNB
  • AMRWB
  • AMRWBE
  • SPEEX NB
  • SPEEX WB
See Also