youtube normally works OK with pulseaudio but I needed to do some extra bits to get it to stream using alsa.
mkdir -p ~/.local/share/vlc/lua/playlist/
tce-load -i wget ca-certificates vlc
cd ~/.local/share/vlc/lua/playlist/
/usr/local/bin/wget -nc --no-check-certificate \
https://raw.githubusercontent.com/videolan/vlc/master/share/lua/playlist/youtube.lua
cvlc https://youtu.be/nIN3IE3DHqc
the wget command does not need ca-certificates....its for vlc
Natually, once you have that downloaded youtube.lua file....and have some kind of home file persistence
you can eliminate some steps
Instead of cvlc <url> Open GUI ...press Crtl + n to open network url....paste url you get from web browser.
web browser does not need to know how to play audio for youtube.
I am showing a screenshot of the command mode for vlc streaming so you know you can dismiss some errors.
sound of course is good via alsa.
https://imgur.com/fayJLpC