doc:appunti:hardware:raspberrypi_nas_audio
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:raspberrypi_nas_audio [2021/03/10 16:38] – [Audio hardware: Raspberry Pi 4] niccolo | doc:appunti:hardware:raspberrypi_nas_audio [2025/10/13 09:16] (current) – [Digital audio through HDMI] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi NAS: The audio subsystem ====== | ====== Raspberry Pi NAS: The audio subsystem ====== | ||
| + | |||
| + | This page is about configuring the **audio subsystem** on a Raspberry Pi installed with RaspiOS, to be used as NAS and mediacenter. See the main index at **[[raspberrypi_nas]]**. | ||
| I want to use **Kodi** for **HDMI video and audio** playback, but I want also occasionally to play music using **Music Player Daemon**, routing the audio to an external amplifier which has **RCA stereo connectors**. Once the cables are connected, it is also desiderable to play Kodi videos routing video to **HDMI monitor** and routing audio to the **stereo amplifier**. | I want to use **Kodi** for **HDMI video and audio** playback, but I want also occasionally to play music using **Music Player Daemon**, routing the audio to an external amplifier which has **RCA stereo connectors**. Once the cables are connected, it is also desiderable to play Kodi videos routing video to **HDMI monitor** and routing audio to the **stereo amplifier**. | ||
| Line 7: | Line 9: | ||
| For the **hardware** part, you can use the **digital HDMI audio** or the **analog 3.5 mm jack** (which carries video and stereo audio signals over a CTIA 4 poles connector). For a **better audio quality** you have to connect and **audio hat** or an external **USB audio sound card**; as explained below the integrated audio devices are of unacceptable quality also for an occasional user, let alone an audiophile one! | For the **hardware** part, you can use the **digital HDMI audio** or the **analog 3.5 mm jack** (which carries video and stereo audio signals over a CTIA 4 poles connector). For a **better audio quality** you have to connect and **audio hat** or an external **USB audio sound card**; as explained below the integrated audio devices are of unacceptable quality also for an occasional user, let alone an audiophile one! | ||
| - | ===== Raspberry  | + | ===== Pi 4 audio hardware ===== | 
| + | |||
| + | There are several possibilities of getting audio from a Raspberry Pi 4. | ||
| ==== Digital audio through HDMI ==== | ==== Digital audio through HDMI ==== | ||
| {{ .: | {{ .: | ||
| - | This is the first natuarl  | + | This is the first natural  | 
| I prefer to avoid the HDMI audio output mainly because the audio of the HDMI monitor is of poor quality, but another problem is that if **the monitor goes into standby** (as Kodi does, when you don't play anything), also **the audio goes standby**. In this condition even the Music Player Damon cannot play to HDMI. | I prefer to avoid the HDMI audio output mainly because the audio of the HDMI monitor is of poor quality, but another problem is that if **the monitor goes into standby** (as Kodi does, when you don't play anything), also **the audio goes standby**. In this condition even the Music Player Damon cannot play to HDMI. | ||
| Line 27: | Line 32: | ||
| ==== Using an externa USB sound card ==== | ==== Using an externa USB sound card ==== | ||
| + | {{ .: | ||
| For a decent audio quality, I decided that  the only acceptable solution is to relay on an external USB sound card connected to my stereo amplifier. I choosed a model based on the **C-Media Electronics** chip (USB Id **0d8c: | For a decent audio quality, I decided that  the only acceptable solution is to relay on an external USB sound card connected to my stereo amplifier. I choosed a model based on the **C-Media Electronics** chip (USB Id **0d8c: | ||
| Line 161: | Line 167: | ||
|   * **[[https:// |   * **[[https:// | ||
| - | ==== Use PulseAudio with Kodi ==== | + | ===== Use PulseAudio with Kodi ===== | 
| With the PulseAudio running as a system service, you can start Kodi and go to **Settings** => **System** => **Audio** = **Audio output device** and select **PULSE: Default**. Here you can also switch between HDMI and stereo jack: | With the PulseAudio running as a system service, you can start Kodi and go to **Settings** => **System** => **Audio** = **Audio output device** and select **PULSE: Default**. Here you can also switch between HDMI and stereo jack: | ||
| Line 188: | Line 194: | ||
| The **mpd** user must be addedd to the relevant groups: **audio**, **pulse** and **pulse-access**.  | The **mpd** user must be addedd to the relevant groups: **audio**, **pulse** and **pulse-access**.  | ||
| + | ===== Web References ===== | ||
| + | |||
| + |   * **[[https:// | ||
| + |   * **[[https:// | ||
doc/appunti/hardware/raspberrypi_nas_audio.1615390703.txt.gz · Last modified:  by niccolo
                
                