본문 바로가기

Electronic Craft/Raspberry Pi

라즈베리 파이 2를 이용한 네트워크 오디오 플레이어 제작기 (Network audio player by using raspberry pi2)

반응형

요즘 시중에 보면 네트워크 오디오 플레이어가 많이 나오는데 가격도 상당하고 집에 있는 앰프를 썩히기 아까워서 라즈베리 파이를 이용한 네크워크 오디오 플레이어를 만들어 보기로 하였습니다. 라즈베리 파이의 오디오 출력 잭은  사실 형편 없는 수준이라 일단 USB DAC를 연결하여 사용하기로 하였습니다. USB DAC는 USB 케이블을 통해 오디오 데이터를 디지털로 입력 받아 아날로그로 변환하여 출력하는 것으로 음질의 손실이 거의 없습니다. 인터넷을 찾아 보다 가격 대비 성능이 괜찮다고 생각하는 놈을 골랐습니다.


In these days comming up a lot of network audio player on the market, but the price so high and I have had an amplifier in the home already. I was going to make network audio player using the Raspberry Pi. The audio output jack of the Raspberry Pi is in fact a poor level so I decided to use a USB DAC. USB DAC, there is little loss of audio quality because it receives a digital audio data via usb cable. And it converts digital audio data to analog audio data. Browse the internet than I think below thing is the price-performance ratio was okay.



http://www.devicemart.co.kr/1090549

출처 : 디바이스마트


바로 이놈인데요 라즈베리 파이의 USB 포트와 동봉되어 있는 케이블로 연결하면 됩니다.


Just needs to be connected to a cable that is supplied with the USB port of Raspberry Pi.


그리고 라즈베리 파이를 네트워크 오디오 플레이어로 변실 시켜줄 소프트웨어를 설치해야 합니다. 인터넷을 뒤져 보니 내가 원하는 모든 기능을 구현한 프로그램이 벌써 있더군요.^^ 바로 RuneAudio라고 하는데요. 라즈베리 파이 OS에 통합되어 있기 때문에 SD 카드에 설치만 하면 됩니다. 이 SW는 아래 site에서 다운받아 설치할 수 있고요.


And you need to install the software that converts the Raspberry Pi to network audio player. I looked around the internet and found the program. The program turns out that already implements all the features I want. ^^ It is 'RuneAudio'. Since the software is integrated into the OS, you just need to install RuneAudio OS to the SD card. This is download site.



http://www.runeaudio.com/download/


아래는 설치 가이드입니다.


This is quick start guide.


http://www.runeaudio.com/documentation/quick-start/quick-start-guide/


설치하고 USB DAC와 음악 파일을 저장한 USB drive를 라즈베리 파이에 연결하고 USB DAC의 오디오 출력을 앰프의 입력(저는 tuner입력으로 연결했네요^^) 으로 연결하면 일단 사용 준비 끝입니다.


When you install and connect the USB drive to save the music files and a USB DAC to a Raspberry Pi's USB port and connect USB DAC's audio output to the input of the audio amp, it is ready to use. 



지금은 라즈베리 파이가 WiFi로 연결되어 있는 상태인데요 처음에는 랜 케이블을 직접 연결한 상태에서 WiFi설정을 해 주어야 합니다.

해당 설정은 아래 페이지의 WIFI CONFIGURATION 부분을 참고 하면 됩니다.


Now's the Raspberry Pi is connected to WiFi, but you must first connect LAN cable and do setup WiFi configuration.

The settings are WIFI CONFIGURATION and it is refer to the section of the page below. 


http://www.runeaudio.com/documentation/troubleshooting/rpi-troubleshooting/


이렇게 하니 아이폰에서 AirPlay도 되고 PC상에서 DLNA를 이용하여 Windows Media Player에서 원격으로 음악을 재생할 수도 있습니다.

물론 위의 사진 처럼 USB drive를 직접연결하여 음악을 들을 수 도 있습니다.

막귀인 제가 듣기에는 들을만 하더군요.^^ CD를 무손실 포맷인 WAV나 AIFF로 저장하여 들으니 더욱 좋은 것 같습니다.


So I can use AirPlay from my iPhone, and even play music remotely from  Windows Media Player by using DLNA on my PC.

Of course, you can also listen to music by connecting a USB drive directly, as pictured above.

It is good sound for my poor ears. ^^ It is better that WAV or AIFF lossless format music files from ripped by CD.


아, 음악 재생은 어떻게 하냐구요? PC나 스마트 폰에서 크롬이나 인터넷 브라우저 주소 창에 라즈베리 파이의 IP주소를 입력하면 아래와 같은 UI 페이지가 뜹니다. PC상의 브라우저에서는 http://runeaudio를 입력해도 됩니다. UI 사용 법은 직관적이어서 그다지 어렵지 않게 사용할 수 있는 것 같습니다. 아래는 아이폰에서 접속한 화면입니다.


Oh, how the music playback is? You can type IP address of the Raspbery Pi or 'http://runeaudio' in internet browser's address bar on PC or smartphone, it will show below UI page. This UI page seems to be so intuitive and not difficult. Below is a screen shot from my phone.





나중에 전용 케이스를 만들어서 사용하면 더욱 깔끔하고 보기 좋을 것 같습니다.


If I later use by creating a special case it seems to be more neat look good.



반응형