Search Results for

    Show / Hide Table of Contents

    Class ConcentusEncodeFilter

    A filter that encodes audio using Opus. Use this as an output filter to reduce the size of outgoing client audio

    Inheritance
    System.Object
    ConcentusEncodeFilter
    Implements
    IAudioFilter
    Namespace: Adrenak.UniVoice.Filters
    Assembly: cs.temp.dll.dll
    Syntax
    public class ConcentusEncodeFilter : IAudioFilter

    Constructors

    ConcentusEncodeFilter(ConcentusFrequencies, Int32, Int32, Int32, Int32)

    Creates a Concentus encode filter

    Declaration
    public ConcentusEncodeFilter(ConcentusFrequencies encodeFrequency = ConcentusFrequencies.Frequency_16000, int resamplerQuality = 2, int encoderComplexity = 3, int encoderBitrate = 64000, int encodeBufferLength = 46080)
    Parameters
    Type Name Description
    ConcentusFrequencies encodeFrequency

    The frequency the encoder runs at. If the input audio frequency is different from this value, it will be resampled before encode.

    System.Int32 resamplerQuality

    Resampler quality [1, 10]

    System.Int32 encoderComplexity

    Encoder complexity [1, 10]

    System.Int32 encoderBitrate

    Encoder bitrate [16000, 256000]. Set to -1 to enable variable bitrate.

    System.Int32 encodeBufferLength

    The length of the encode buffer. Default is 46080 to fit a large sample with frequency 48000, duration 120ms and 2 channels. This should be enough for almost all scenarios. Increase if you need more.

    Properties

    SamplingFrequency

    Declaration
    public ConcentusFrequencies SamplingFrequency { get; }
    Property Value
    Type Description
    ConcentusFrequencies

    Methods

    Run(AudioFrame)

    Declaration
    public AudioFrame Run(AudioFrame input)
    Parameters
    Type Name Description
    AudioFrame input
    Returns
    Type Description
    AudioFrame

    Implements

    IAudioFilter
    In This Article
    Back to top UniVoice documentation