So basically I was able to use my raspberry pi as a bluetooth audio out device that is, connecting a speaker via audio jack I'm able to make it a Bluetooth speaker. I'm wondering if there's a specific protocol/package/anything that allows the same using wifi, as my bluetooth connection feels pretty slow always. I intend to use my phone's wifi hotspot and use the pi as a reciever that reroutes the audio to the 3.5mm out just like bluetooth. I'm running a raspian stretch on my raspberry pi 3B+. Thanks in advance!

  • I am a bit confused. I usually use Rpi desktop VLC Media Player to play mp3 files and output to a Bluetooth speaker. I have never heard of Wifi speaker. I think there is no such thing. I also use my smart phone to listen to radio using Bluetooth head phone or Bluetooh speaker: raspberrypi.stackexchange.com/questions/99017/…. I guess you are connecting your smart phone to Rpi and output to Rpi's 3.5mm jack. This connection seems a bit indirect.
    – tlfong01
    Commented Aug 3, 2019 at 12:54
  • I don't know if my question is getting misinterpreted here lol but actually I don't have a Bluetooth speaker or a WiFi speaker... I use my raspberry and it's audio out along with an old speaker amplifier kit... So it's already a portable music box with an added powerbank inside the box. What I'm trying to achieve here is rather than using Bluetooth to play music from my phone on the pi-speaker, is there any way to play music or stream music from phone via WiFi Commented Aug 3, 2019 at 12:59
  • Sorry about the weird way of asking😅.I have made some edits to the question to make it easier to understand Commented Aug 3, 2019 at 13:05
  • Yes, I think I misunderstood your question. Let me tried again. (1) For now you don't have any Bluetooth speaker nor "Wifi speaker" (which I doubt it exists). (2) For now you have a "portable music box" which consists of the following: (a) Rpi, (b) Power amplifier and speaker connected to Rpi's 3.5mm jack. (c) power bank. (c) Monitor, keyboard, and mouse connected to Rpi (direct or SSH). (3) Now what you wish to do now to connect you smart phone to Rpi, using Wifi or Bluetooth, and use your phone to play music or listen to radio. Please confirm if I am guessing correctly this time. :)
    – tlfong01
    Commented Aug 3, 2019 at 13:16
  • Yes that's exactly what I want... To use my phone to stream music not using raspicast or anything but directly... I wish to play offline music as well as stream music from Spotify and SoundCloud. Commented Aug 3, 2019 at 13:26

1 Answer 1


Install shairport-sync and it will advertise an RAOP (AirPlay 1) service on your WiFi. Apple gear will all detect this and offer it as an audio destination, Linux, Windows and others can too.

  • Why do you suggest to install shairport-sync? There was nothing asked about audio streams from iTunes, iOS devices and third-party AirPlay sources.
    – Ingo
    Commented Sep 12, 2019 at 10:11
  • @Ingo OP asks for "any way to play music or stream music from phone via WiFi" — that's AirPlay. If there's an implementation of ChromeCast Audio for the Pi that would seem to be the main alternative.
    – James
    Commented Sep 12, 2019 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.