1

I (as I am sure most people do) have loads of MP3s and CDs from pre Spotify days (other services are available). In particular I have quite a few that aren't on Spotify. So I have decided that I would like to have a convenient way to listen to them.

Does any one know of any software that exists that would let me store the MP3s on the raspberry pi (or an external harddrive attached to the pi), and then stream the MP3s from the pi to my phone (via an android app or a website hosted on the pi, so that the audio comes out of my phone).

I would also be quite happy to write the software myself, in which case I would like some advice about the best architecture. I am thinking something like a ruby on rails site (I say ruby on rails as I have used it very briefly before) + database, in which the MP3s are exposed as HTML audio elements. Is there something better to expose them as? Is there a clever way to put all of the MP3s into the database? Is there a better framework to use (nodejs? Mongodb?)? Is there a way to just expose the file structure in which the MP3s are stored?

Thanks!

3

There exist some projects out there to achieve something like what you want. Volumio is an example of that. Another one is RuneAudio.

Depending on where you want to store your music, I would suggest you review the official documentation to understand how to connect an external storage device to the Raspberry Pi.

I think the big challenges here will be to setup your

  1. network
  2. database: for this I would suggest using SQLite
  3. (probably web) application: for this I would suggest trying out Flask

Here is an example by someone who used these technologies to achieve what you want

  • Thank you very much for the links. They seem to do the inverse of what I am trying to do (in which the raspberry pi plays the audio, controlled by the phone). When googling this is mostly what I find. – Josiki Mar 27 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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