USB DAC SPID make carcking sound

Hello,

I use this DAC
https://www.amazon.de/dp/B0C3MC19FB?psc=1&ref=ppx_yo2ov_dt_b_product_details

I managed to play music via SPDIF on my speakers using the Squeezelite addon.

The problem is that I hear constant cracking or hissing.

Since it worked on Windows, I think it’s a driver problem? Does anyone know how to solve it? Or does anyone have another SPDIF USB DAC that works?

Are there any other options besides VLC and Squeezelite that don’t have a media_player entity?

Update: My setup is an Intel Nuc with Proxmox an Homeassistant OS via VM
Everthing is updated

Have you tried another power cable and moved the output cable between the dac and the speaker setup away from any power sources? crackling and hissing is usually due to bad insulation of the 3.5mm cables and poor grounding in the setup.

If you can’t move the cable then the other option is ferrite beads/chokes like this that slot onto the end closest to the speaker to reduce EMI pickup from power cables where its located:

https://www.amazon.com.au/10Pcs-Noise-Ferrite-Choke-Clip-Filter/dp/B07PV8CB8S

I don’t use 3,5mm.
I use Toslink / SPDIF

To rule out a hardware defect, I tested another product again.
Unfortunately exactly the same noise.

https://www.amazon.de/dp/B0BNMRYMCT?psc=1&ref=ppx_yo2ov_dt_b_product_details

Did you manage to solve the problem? I have exactly the same issue. I read that the cause might be the default bitrate, but I can’t figure out how to change it from within Home Assistant.

Unfortunately not. But I would be very interested in the solution.

In my case, the cause of those sounds was the default bitrate settings. After changing it to 48000Hz, everything started working without cracking noises. I’m not sure if it’s the simplest way, but I used SSH to the HA host to edit the daemon.conf file in the audio Docker. After saving the changes and restarting HA audio, everything starts working. Unfortunately, this only lasts until the host restarts (in my case, it’s a VM). Then, the file reverts to its original state, and the problem returns. I haven’t figured out how to deal with this yet.

Great to hear.
Witch soundcard do you use?
I also use a VM. Proxmox.

I also use Proxmox. I use this card:link
Ultimately, I stopped using HA for AirPlay. I installed Shairport Sync in a separate Docker container on Proxmox where I have more control over the settings.

I have no /etc/pulse/daemon.conf
I use the Terminal AddOn not SSH.
I run Home Assistant OS on Proxmox.
How can I change the Hz?

I’ll try to remember how I did it, but ultimately, I abandoned this approach because the config file is restored to default state with every HA VM restart, causing the crackling to return.

  1. SSH access via Terminal is not enough. You need access to the HA host. More information here: Enabling SSH access to the host.
  2. Once logged into the HA terminal, view all containers:
    docker ps
  3. Find the container with PulseAudio and enter:
    docker exec -it <container_id> /bin/bash
  4. Locate the configuration file:
    vi /etc/pulse/daemon.conf
  5. Edit the file:
    default-sample-rate = 48000
    alternate-sample-rate = 48000
  6. Restart the audio container:
    docker restart ha-audio

In my case, I just wanted to play music from devices via AirPlay. I installed Shairport-sync in a separate Docker container on Proxmox (next to HA, but not within HA). That way I have full control over the audio settings. I wish it was simpler and integrated into HA, but I couldn’t find a way to make the settings persist after a reboot.