quebulm / Raspberry-Pi-Vinyl-Streamer

A project to stream audio from a turntable across a local network. This setup utilizes a Raspberry Pi 3A+ coupled with a Behringer UCA202 Audio Capture Card and a MicroPhono PP400 amplifier. The streaming software in use is Icecast.
GNU General Public License v3.0
5 stars 1 forks source link

Make the pre-configured image easier to use as a "Music Provider" for "Music Assistant" (a.k.a. MA)? #2

Open Hedda opened 1 month ago

Hedda commented 1 month ago

@quebulm heard about Music Assistant (MA) project and any chance you be interested in making it easier to use this for it?

The "Music Assistant" server is a music-streaming cross-ecosystem interoperability open-source software project that can work as a standalone product but is actually tailored to use side-by-side integration for Home Assistant (home automation software) as an addon.

Read this article announcement about new Music Assistant 2.0 release explaining how it works (and integrates with Home Assistant):

https://www.home-assistant.io/blog/2024/05/09/music-assistant-2/

Would be awesome if you could would make it even easier stream music from AUX input to a "Music Provider" inside Music Assistant.

https://music-assistant.io/music-providers/

Any chance you consider building a super easy pre-configured image to achieve this concept via "Music Provider" for Music Assistant?

https://music-assistant.io/music-providers/url

Music Assistant already has support for manually adding a radio station URLs to the database via "Music Provider". The user can add a locally created station from an Icecast server (or any online Icecast stations):

https://music-assistant.io/faq/stream-to/

I Want To Stream To - Music Assistant: "You could use Darkcast to stream to Icecast which in turn sets up a web radio stream that you could add to MA! You could use this to stream your turntable around the house for example. Here is a generic tutorial and for those that like a nice step by step look here. For input a HiFiBerry could be used or a USB Audio Interface like this one or this one"

PS: Off-topic but noticed possibly more elegant looking hardware solution mentioned in link there is to use HiFiBerry's ANALOG INPUT products "HIFIBERRY DAC+ ADC PRO", "HIFIBERRY DAC2 ADC PRO", or "HIFIBERRY DAC+ ADC" as ADC instead of a USB Audio Device as input for a very clean and almost the look of a all-in-one commercial appliance:

https://www.hifiberry.com/shop/boards/hifiberry-dac-adc/

https://www.hifiberry.com/shop/boards/hifiberry-dac-adc-pro/

https://www.hifiberry.com/shop/boards/hifiberry-dac2-adc-pro/

All of those are add-on boards for Raspberry Pi's GPIO Pin header:

https://www.hifiberry.com/blog/need-some-input/

quebulm commented 1 month ago

@Hedda didn’t know about the Music Assistant project, but it sounds cool! I’ll look into it and might also try out the Raspberry Pi extensions. Thanks for sharing!

Hedda commented 3 weeks ago

FYI, I have posted a link to your guide in Music Assistant documentation for reference -> https://music-assistant.io/faq/stream-to/

Music Assistant

You could use Darkcast to caputure and Icecast to build a solution will digitize and stream audio from your analog audio equipment like a vinyl record player (turntable/phonograph/gramophone) as a web radio stream (URL) that you could add as a Music Provider in Music Assistant.

For such a project you need audio-capture and ADC (analogue-to-digital converter) device hardware that provide audio-input and digitalization. For example, you can use either a USB Audio Device Interface adapter from Behringer or IK Multimedia, or a HiFiBerry board with ADC.

You can find a generic tutorial here, and for those that like step-by-step guides look here and here (the first of which also offers a pre-configured Linux appliance image for Raspberry Pi 3 / Raspberry Pi Zero 2 W).

Hedda commented 1 day ago

@Hedda didn’t know about the Music Assistant project, but it sounds cool! I’ll look into it and might also try out the Raspberry Pi extensions. Thanks for sharing!

@quebulm slightly off-topic but maybe you would even be willing and interesting to consider adding these functions to "Music Assistant Companion" which is a remote-control desktop-application side-project (written in Rust programming language) that they have for remotely controlling playback for the Music Assistant server from any Linux/Mac/Windows computer on the same local network, see related feature request for them here -> https://github.com/music-assistant/companion/issues/40