Log in
Register
Menu
Log in
Register
Home
What's new
Latest activity
Authors
Forums
New posts
Search forums
What's new
New posts
Latest activity
Members
Current visitors
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Miscellaneous Sections
Tech Head - The Technology Section
Raspberry Pi
Pi - Audio Injector
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Archive-8" data-source="post: 1061552"><p>The first thing I did was to flash a new raspbian lite img to micro sd card, then made a new file called ssh in the boot sector.</p><p>then I installed moodeaudio using these commands:</p><p></p><p></p><p>[CODE]cd /home/pi</p><p>sudo wget -q http://moodeaudio.org/downloads/mos/mosbuild.sh -O /home/pi/mosbuild.sh</p><p>sudo chmod +x /home/pi/mosbuild.sh[/CODE]</p><p></p><p>then start the build</p><p></p><p>[CODE]sudo ./mosbuild.sh[/CODE]</p><p></p><p>you can now build the img directly on the sd card, this can take about an hour and a half to complete.</p><p></p><p>you can check the progress of the build with the ssh command moslog.</p><p></p><p>once moodeaudio is installed you need to edit the /boot/config file</p><p></p><p>use this command to edit the boot config file</p><p></p><p>[CODE]sudo nano /boot/config.txt[/CODE]</p><p></p><p>this is a copy of mine</p><p></p><p>[CODE]disable_splash=1</p><p>hdmi_drive=2</p><p>dtparam=i2c_arm=on</p><p>dtparam=i2s=on</p><p>#dtparam=audio=on</p><p>dtoverlay=pi3-disable-wifi</p><p>dtoverlay=pi3-disable-bt</p><p>dtoverlay=audioinjector-wm8731-audio[/CODE]</p><p></p><p>dont forget to save the file by pressing Ctrl + x and hit y and then enter.</p><p></p><p>next you will need to entre these commands, to finish setting up the audio injector.</p><p></p><p>[CODE]alsactl --file /usr/share/doc/audioInjector/asound.state.MIC.thru.test restore[/CODE]</p><p></p><p>[CODE]alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore[/CODE]</p><p></p><p>next load alsamixer, so you can turn up the volume. the arrow keys, m & space bar will help you, the press esc and store the alsamixer settings with this code</p><p></p><p>[CODE]sudo alsactl store[/CODE]</p><p></p><p>I then renamed the pi to audioinjector, to do this [CODE]sudo nano /etc/hostname[/CODE] change moode to what you want to call it.</p><p>next edit the hosts file [CODE]sudo nano /etc/hosts[/CODE] and use the same name from before.</p><p></p><p>you need to change the bottom 127.0.0.1, save with ctrl +x then y and enter.</p><p></p><p>spotify plug in was next.</p><p></p><p>[CODE]sudo apt-get -y install curl apt-transport-https[/CODE]</p><p>[CODE]sudo curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -[/CODE]</p><p>[CODE]sudo echo 'deb https://dtcooper.github.io/raspotify jessie main' | sudo tee /etc/apt/sources.list.d/raspotify.list[/CODE]</p><p>[CODE]sudo apt-get update[/CODE]</p><p>[CODE]sudo apt-get -y install raspotify[/CODE]</p><p></p><p>you can edit the spotify config file with this command</p><p></p><p>[CODE]sudo nano /etc/default/raspotify[/CODE] and change the bitrate to 320 and change the name.</p><p></p><p>[CODE]sudo nano /lib/systemd/system/raspotify.service[/CODE] </p><p></p><p>only change these values</p><p></p><p>[CODE]Environment="DEVICE_NAME=audioinjector (%H)"</p><p>Environment="BITRATE=320"</p><p>[/CODE]</p><p></p><p>save with ctrl + x hit y and enter.</p><p></p><p>the reboot [CODE]sudo reboot[/CODE]</p><p></p><p>now load the web interface for moode eg moode.local or whatever name you picked, click the little m in the top right hand corner of the web page. pick configure and set the time zone and keyboard layout hitting set each time you make a change.</p><p></p><p>next switch off</p><p>Integrated WiFi adapter</p><p>Integrated BT adapter </p><p>HDMI port</p><p></p><p>back to the little green m in the top right hand corner of the screen, and pick audio, look for the mpd settings.</p><p>set the volume control to disabled.</p><p>SoX resampling 24 bit / 96 Khz</p><p>SoX quality very high</p><p>SoX multithreading yes</p><p>Gapless mp3 playback yes</p><p>DSD over PCM (DoP) no</p><p>Volume normalization no</p><p>ReplayGain off</p><p></p><p>scroll down and switch on airplay, hit set.</p><p></p><p>and hit apply top left of the screen.</p><p></p><p>then all I had to do was let it scan my nas.</p></blockquote><p></p>
[QUOTE="Archive-8, post: 1061552"] The first thing I did was to flash a new raspbian lite img to micro sd card, then made a new file called ssh in the boot sector. then I installed moodeaudio using these commands: [CODE]cd /home/pi sudo wget -q http://moodeaudio.org/downloads/mos/mosbuild.sh -O /home/pi/mosbuild.sh sudo chmod +x /home/pi/mosbuild.sh[/CODE] then start the build [CODE]sudo ./mosbuild.sh[/CODE] you can now build the img directly on the sd card, this can take about an hour and a half to complete. you can check the progress of the build with the ssh command moslog. once moodeaudio is installed you need to edit the /boot/config file use this command to edit the boot config file [CODE]sudo nano /boot/config.txt[/CODE] this is a copy of mine [CODE]disable_splash=1 hdmi_drive=2 dtparam=i2c_arm=on dtparam=i2s=on #dtparam=audio=on dtoverlay=pi3-disable-wifi dtoverlay=pi3-disable-bt dtoverlay=audioinjector-wm8731-audio[/CODE] dont forget to save the file by pressing Ctrl + x and hit y and then enter. next you will need to entre these commands, to finish setting up the audio injector. [CODE]alsactl --file /usr/share/doc/audioInjector/asound.state.MIC.thru.test restore[/CODE] [CODE]alsactl --file /usr/share/doc/audioInjector/asound.state.RCA.thru.test restore[/CODE] next load alsamixer, so you can turn up the volume. the arrow keys, m & space bar will help you, the press esc and store the alsamixer settings with this code [CODE]sudo alsactl store[/CODE] I then renamed the pi to audioinjector, to do this [CODE]sudo nano /etc/hostname[/CODE] change moode to what you want to call it. next edit the hosts file [CODE]sudo nano /etc/hosts[/CODE] and use the same name from before. you need to change the bottom 127.0.0.1, save with ctrl +x then y and enter. spotify plug in was next. [CODE]sudo apt-get -y install curl apt-transport-https[/CODE] [CODE]sudo curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -[/CODE] [CODE]sudo echo 'deb https://dtcooper.github.io/raspotify jessie main' | sudo tee /etc/apt/sources.list.d/raspotify.list[/CODE] [CODE]sudo apt-get update[/CODE] [CODE]sudo apt-get -y install raspotify[/CODE] you can edit the spotify config file with this command [CODE]sudo nano /etc/default/raspotify[/CODE] and change the bitrate to 320 and change the name. [CODE]sudo nano /lib/systemd/system/raspotify.service[/CODE] only change these values [CODE]Environment="DEVICE_NAME=audioinjector (%H)" Environment="BITRATE=320" [/CODE] save with ctrl + x hit y and enter. the reboot [CODE]sudo reboot[/CODE] now load the web interface for moode eg moode.local or whatever name you picked, click the little m in the top right hand corner of the web page. pick configure and set the time zone and keyboard layout hitting set each time you make a change. next switch off Integrated WiFi adapter Integrated BT adapter HDMI port back to the little green m in the top right hand corner of the screen, and pick audio, look for the mpd settings. set the volume control to disabled. SoX resampling 24 bit / 96 Khz SoX quality very high SoX multithreading yes Gapless mp3 playback yes DSD over PCM (DoP) no Volume normalization no ReplayGain off scroll down and switch on airplay, hit set. and hit apply top left of the screen. then all I had to do was let it scan my nas. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous Sections
Tech Head - The Technology Section
Raspberry Pi
Pi - Audio Injector
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top