Amazon used to offer exactly that kind of service. You could upload your own music files or get them automatically when your purchased an album (digitally or physically), then play them from a web player or locally installed client app. It worked great, so of course they killed it and now you can only listen to music they license/allow streaming.