# Audio Enhancement on Room Recording - is it Raw or Processed?

**URL:** <https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931>\
**Category:** Egress / Ingress\
**Tags:** egress, plugin, other, noise-cancellation\
**Created:** [April 22, 2026, 3:31pm UTC](https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931 "2026-04-22T15:31:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawel\_Lach](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/pawel_lach/32/1127_2.png) [@Pawel\_Lach](https://community.livekit.io/u/Pawel_Lach)\
**Post date:** [April 22, 2026, 3:31pm UTC](https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931/1 "2026-04-22T15:31:32Z")

</div>

Hey! I was just wondering when I am recording a room audio on LK with some audio enhancement plugins, will it be included in the recording or does the recording takes the raw input?

In other words - if a participant publishes their mic with an `AudioProcessor`applied (e.g. noise cancellation), does room composite egress record the post processed track, or the raw input?

Quick test on my side with a noise cancellation plugin (ai-coustics) and ventilation fan as background noise. Three spectrograms attached:

- `spec_raw`: mic tapped before the processor

- `spec_enhanced`: mic tapped after the processor

- `spec_egress`: room composite egress

Noise floor in the egress gaps looks closer to raw than enhanced, so it seems egress captures the pre processed audio. Can someone confirm, and is there a way to configure egress to record the post processed track instead?

Thanks!

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [April 23, 2026, 7:07am UTC](https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931/2 "2026-04-23T07:07:45Z")

</div>

Are you applying audio enhancement in the Agent, i.e. [Noise & echo cancellation | LiveKit Documentation](https://docs.livekit.io/transport/media/noise-cancellation/#agents) ?

If so, that noise cancellation will not be applied to the egress track.

---

<div class="post-metadata">

**Author:** ![\_E\_r\_r\_o\_n\_e\_o\_u\_s\_D\_e\_s\_i\_g\_n\_s](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/_e_r_r_o_n_e_o_u_s_d_e_s_i_g_n_s/32/1143_2.png) [@\_E\_r\_r\_o\_n\_e\_o\_u\_s\_D\_e\_s\_i\_g\_n\_s](https://community.livekit.io/u/_E_r_r_o_n_e_o_u_s_D_e_s_i_g_n_s)\
**Post date:** [April 23, 2026, 7:23am UTC](https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931/3 "2026-04-23T07:23:04Z")

</div>

The way it works, Mic → (optional AudioProcessor) → encoded → sent to SFU

Server side (SFU / egress) → Received encoded track → mixed/composited → recorded (egress)

The key detail is Egress only has access to the published track, not your local pre/post processing tap.

Egress records the processed version only if, the processed audio is what’s actually being published as the track, meaning, you replace the original mic track with a processed one, or an easy way to see it is your processor modifies the outgoing MediaStream before publishing it.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![Pawel\_Lach](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/pawel_lach/32/1127_2.png) [@Pawel\_Lach](https://community.livekit.io/u/Pawel_Lach)\
**Post date:** [April 23, 2026, 3:45pm UTC](https://community.livekit.io/t/audio-enhancement-on-room-recording-is-it-raw-or-processed/931/4 "2026-04-23T15:45:06Z")

</div>

Great! Thank you for the replies 🙂 and let’s keep it here just in case.
