squeezelite-esp32 icon indicating copy to clipboard operation
squeezelite-esp32 copied to clipboard

Speaker gives noise when playing simultaneously from Bluetooth and other source

Open scholzri opened this issue 8 months ago • 1 comments

Description

When playing music through LMS, Spotify, or AirPlay and then starting playback from another device via Bluetooth, the audio streams interfere with each other or something, resulting in distorted sound with crackling and noise.

It would be helpful to have a software option that automatically stops or ignores playback on other sources when receiving audio through Bluetooth.

Preliminary Information

  1. Firmware Version: I2S-4MFlash-1673
  2. Plugin Version: 8.5.2

Hardware Details

  • ESP32 Module: ESP32 WROVER
  • Board Type: louder-esp32
  • DAC Chip: TAS5805M

NVS Settings


{
  "a2dp_ctmt": "1000",
  "a2dp_ctrld": "500",
  "a2dp_dev_name": "Wohnzimmer",
  "a2dp_sink_name": "SMSL BT4.2",
  "a2dp_spin": "0000",
  "actrls_config": "",
  "airplay_name": "Wohnzimmer",
  "airplay_port": "5000",
  "ap_channel": "1",
  "ap_ip_address": "192.168.4.1",
  "ap_ip_gateway": "192.168.4.1",
  "ap_ip_netmask": "255.255.255.0",
  "ap_pwd": "squeezelite",
  "ap_ssid": "Wohnzimmer",
  "autoexec": "1",
  "autoexec1": "squeezelite -o I2S -b 500:2000 -d all=info -C 30 -W -n \"Wohnzimmer\"",
  "bat_config": "",
  "bt_name": "Wohnzimmer",
  "bt_sink_pin": "1234",
  "bt_sink_volume": "127",
  "bypass_wm": "0",
  "cspot_config": "{\t\"deviceName\":\t\"Wohnzimmer\",\t\"bitrate\":\t160,\t\"zeroConf\":\t1}",
  "dac_config": "model=I2S,bck=26,ws=25,do=22,sda=21,scl=27,i2c=45",
  "dac_controlset": "{\"init\":[{\"reg\":3,\"val\":2},{\"reg\":3,\"val\":3}],\"poweron\":[{\"reg\":3,\"val\":3}],\"poweroff\":[{\"reg\":3,\"val\":0}]}",
  "dhcp_tmout": "8",
  "display_config": "",
  "enable_airplay": "Y",
  "enable_bt_sink": "Y",
  "enable_cspot": "N",
  "equalizer": "",
  "eth_config": "",
  "ethtmout": "8",
  "gpio_exp_config": "",
  "host_name": "Wohnzimmer",
  "i2c_config": "scl=27,sda=21,speed=400000,port=1",
  "jack_mutes_amp": "n",
  "led_brightness": "",
  "led_vu_config": "",
  "lms_ctrls_raw": "n",
  "loudness": "0",
  "metadata_config": "",
  "model_config": "",
  "ota_erase_blk": "249856",
  "ota_prio": "6",
  "ota_stack": "10240",
  "pollmin": "15",
  "pollmx": "600",
  "rel_api": "https://api.github.com/repos/sle118/squeezelite-esp32/releases",
  "release_url": "CONFIG_SQUEEZELITE_ESP32_RELEASE_URL",
  "rotary_config": "",
  "set_GPIO": "33=vcc",
  "sleep_config": "",
  "spdif_config": "",
  "spi_config": "",
  "stats": "N",
  "target": "",
  "telnet_block": "500",
  "telnet_buffer": "40000",
  "telnet_enable": "N"
}

Logs

Unfortunately, I am not able to connect to the device while it is normally powered over vcc in.. I hope you can reproduce the issue regardlessly?

Issue Description

  1. Observed Behavior: Speaker gives noise and crackling when audio is played over Bluetooth while another source is already playing
  2. Expected Behavior: When audio over bluetooth is started, the other audio should pe paused or ignored
  3. Steps to Reproduce:
  • play audio over spotify connect, airplay or lms
  • use another source, connect via bluetooth and play audio
  • speaker gives noise and crackling and only stops when one of the audio streams is paused

scholzri avatar Jun 18 '24 21:06 scholzri