# AudioEncodedFrameObserverConfig (/zh-CN/api-reference/rtc/unity/class-audioencodedframeobserverconfig)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_audioencodedframeobserverconfig__prototype"></a>

```csharp
public class AudioEncodedFrameObserverConfig
    {
        public AudioEncodedFrameObserverConfig()
        {
            postionType = AUDIO_ENCODED_FRAME_OBSERVER_POSITION.AUDIO_ENCODED_FRAME_OBSERVER_POSITION_PLAYBACK;
            encodingType = AUDIO_ENCODING_TYPE.AUDIO_ENCODING_TYPE_OPUS_48000_MEDIUM;
        }

        public AudioEncodedFrameObserverConfig(AUDIO_ENCODED_FRAME_OBSERVER_POSITION postionType,
                                                AUDIO_ENCODING_TYPE encodingType)
        {
            this.encodingType = encodingType;
            this.postionType = postionType;
        }
        public AUDIO_ENCODED_FRAME_OBSERVER_POSITION postionType { set; get; }
        public AUDIO_ENCODING_TYPE encodingType { set; get; }
    }
```

<a id="class_audioencodedframeobserverconfig__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="postiontype"></a>
<Parameter name="postionType">

音频编码内容。详见 [AUDIO_ENCODED_FRAME_OBSERVER_POSITION](/zh-CN/api-reference/rtc/unity/enum-audioencodedframeobserverposition)。

</Parameter>
<a id="encodingtype"></a>
<Parameter name="encodingType">

音频编码类型。详见 [AUDIO_ENCODING_TYPE](/zh-CN/api-reference/rtc/unity/enum-audioencodingtype)。

</Parameter>
</ParameterList>
