Sounds not working in Tor Browser in whonix-workstation-17

Update: Problem is not solved. After few testing, This issue seems to be the audio server issue.

I’ve tried to start pipewire/pulseaudio manually. after the audio server started the sink appeared in playback tabs. but still no sound.

I made two test separately for pipewire+pipewire-pulse and pulseaudio in whonix-ws-17.

heres systemd messages from first pipewire test result.

pipewire in whonix-ws-17-dvm (NOT working)

Apr 07 14:44:18 host systemd[843]: Started pipewire.service - PipeWire Multimedia Service.
Apr 07 14:44:18 host pipewire[3147]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:18 host pipewire[3147]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:18 host pipewire[3147]: mod.portal: Failed to connect to session bus: Input/output error

pipewire in debian-12-dvm (working)

Apr 07 14:51:43 disp8906 systemd[646]: Started pipewire.service - PipeWire Multimedia Service.
Apr 07 14:51:43 disp8906 pipewire[670]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running?
Apr 07 14:51:43 disp8906 pipewire[670]: mod.rt: found session bus but no portal

pipewire-pulse in whonix-ws-17-dvm (NOT working)

Apr 07 14:44:23 host systemd[843]: Started pipewire-pulse.service - PipeWire PulseAudio.
Apr 07 14:44:23 host pipewire-pulse[3215]: mod.rt: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:44:23 host pipewire-pulse[3215]: spa.dbus: Failed to connect to session bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

pipewire-pulse in debian-12-dvm (working)

Apr 07 14:51:43 disp8906 systemd[646]: Started pipewire-pulse.service - PipeWire PulseAudio.
Apr 07 14:51:43 disp8906 pipewire-pulse[672]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal runnin>
Apr 07 14:51:43 disp8906 pipewire-pulse[672]: mod.rt: found session bus but no portal

Heres second pulseaudio test result:

pulseaudio in whonix-ws-17-dvm (NOT working)

Apr 07 14:49:52 host systemd[843]: Starting pulseaudio.service - Sound Service...
Apr 07 14:49:52 host pulseaudio[6089]: Stale PID file, overwriting.
Apr 07 14:49:52 host pulseaudio[6089]: Failed to open cookie file '/home/user/.config/pulse/cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to load authentication key '/home/user/.config/pulse/cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to open cookie file '/home/user/.pulse-cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Failed to load authentication key '/home/user/.pulse-cookie': No such file or directory
Apr 07 14:49:52 host pulseaudio[6089]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:49:52 host pulseaudio[6089]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Apr 07 14:49:52 host systemd[843]: Started pulseaudio.service - Sound Service.

I’ve tried the Migration dom0 audio from pulseaudio to pipewire available for testing the test @marmarek just published. but it does not solve the problem.

I am not sure the whonix-ws issue is relevant with dom0 audio server. I tried both pulseaudio and pipewire in dom0. unfortunately, none of them solve the whonix problem.