This is what I did after trying all the available answers on google and they did not work for me.
I looked for the status of pulseaudio and it shows the error 'Failed to load module "module-alsa-card"', this command will show you the status
systemctl --user status pulseaudio
And I feel like there is something wrong with my current kernel
So I switched to the previous kernel version (in my case from linuz-5.15.0-125-generic to linuz-5.14.0-1034-oem) and the speaker device is now recognized.
To do this, just reboot, press "esc" to open the kernel selection -> select "Advanced options for Ubuntu" -> in my case, I select the previous version "Linux 5.14.0-1034-oem".
To make it the default on every boot, you can simply change a line in the file "/etc/default/grub" from
GRUB_DEFAULT=0
to
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, using Linux 5.14.0-1034-oem".
Then update grub and reboot
sudo update-grub
sudo reboot