This is not possible thanks to Google who decided that getting the SSID requires precise location permission. This is not a proper permission for a music app.
Without logs it’s hard to tell what happens.
You can use tools like Tasker or Automate and the API Symfonium API (Allow control from other apps like tasker) to change the wifi transcode value depending on the active wifi connection to workaround this.