Use HA Raspberry PI as Bluetooth Audio adapter

Hello everyone!

I have a Raspberry PI running HA. I want to connect it to my Amplifier and play music over Spotify connect and/or Bluetooth. I already have installed the spotify extension and configured Bluetooth as discoverable and audio device. I can connect and start music over bluetooth but there is no sound output. How can I fix this?