Hi @jackson023, thanks for reaching out and welcome to the community. When using the Sonos Beam, you can wirelessly connect to your WiFi or hardwire to the router using an ethernet cable and when connecting to the TV you need to use the HDMI cable or optical audio adapter if your TV doesn’t have an HDMI-ARC input. You can also use AirPlay 2 on your iPhone, iPad, or Mac to stream your favorite music, movies, podcasts, and other audio directly to your Sonos Beam. Below are links that would be helpful to your concern.
Setting up your Sonos Beam: https://support.sonos.com/s/article/2659?language=en_US
Using AirPlay with Sonos: https://support.sonos.com/s/article/1230?language=en_US
Let us know if this helps.
Help others find useful content by clicking the like button and selecting the best answer to your question.