How can I install ffmpeg with pulse audio input device support?

I’m not sure if this is the right place for my question but at the same time, I don’t know any better to ask it. So here it goes:

I’m trying to follow the tutorial on the PyTorch website on working with live audio streams. And it’s talking about the fact that PyTorch uses ffmpeg underneath to communicate with the audio driver.

While the examples on the website are pointing to settings on Mac, I would like to replicate the tutorial on my Linux machine. And my Linux machine has got pulse audio. If I open a terminal (without activating any conda env), the ffmpeg installed is version n5.1.2 but the PyTorch tutorial needs ffmpeg version earlier than 4.4. So, it suggests the following command:

conda install -c anaconda 'ffmpeg<4.4' 

So I installed ffmpeg 4.2.2. But then, there’s no pulse device available in this installation:

ffmpeg -devices
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
Devices:
 D. = Demuxing supported
 .E = Muxing supported
 --
 DE fbdev           Linux framebuffer
 D  lavfi           Libavfilter virtual input device
 DE oss             OSS (Open Sound System) playback
 DE video4linux2,v4l2 Video4Linux2 output device

This is while I have a whole lot of more devices on my newer ffmpeg:

ffmpeg -devices
ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
Devices:
 D. = Demuxing supported
 .E = Muxing supported
 --
 DE alsa            ALSA audio output
 DE fbdev           Linux framebuffer
 D  iec61883        libiec61883 (new DV1394) A/V input device
 D  jack            JACK Audio Connection Kit
 D  kmsgrab         KMS screen capture
 D  lavfi           Libavfilter virtual input device
  E opengl          OpenGL output
 DE oss             OSS (Open Sound System) playback
 DE pulse           Pulse audio output
  E sdl,sdl2        SDL2 output device
 DE video4linux2,v4l2 Video4Linux2 output device
 D  x11grab         X11 screen capture, using XCB
  E xv              XV (XVideo) output device

My question is, is there any way to install ffmpeg with conda and still have pulse (at least) supported as a device?