User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Squeezeslave up and running

Sat Nov 10, 2012 2:57 pm

Hi all,


edit: Because I've had the some problems I couldn't solve, I switched to Squeezelite instead of Squeezeslave.
See this tutorial: http://www.raspberrypi.org/phpBB3/viewt ... 38&t=25778


I am a raspberry owner for a couple of weeks now, and I plan to use them as a multi room audio system. I now have one raspberry acting as a streaming audio
player. I have got a Logitech Media Server (squeezebox server) running on my NAS, and wanted to use the raspberry as a headless squeezebox player.
Because I learned a lot from this forum, I thought I would write up my story so maybe I can help somebody else too, to return the favors.

I installed the Raspian Wheezy september release on my raspberry (model B 256 ram) , and fooled around a bit to get SSH working. After that used SSH to do all the
following actions, withoaut using a monitor.

I used this great tutorial to get squeezeslave installed: Paul Webster's instructions

That worked excellent! I had squeezeslave up and running in no time, using the on-board audio jack.

I allready had the Squeezer app installed on my android phone, this is a squeezebox server remote control app.
Now I could remotely control the raspberry to play any MP3 I got on my LMS server, or listen to internet radio stations. Very nice!

But the sound quality coming from the onboard audio jack was not very good.

After searching around, I decided to use one of those USB soundcards. I bought the Logilink USB Soundcard.
That didn't work directly, squeezeslave wouldn't play over the soundcard.
But then I discovered I had to tell squeeze slave which audio device to use.

With the -L option squeezeslave will tell you which audio devices it knows.
This is the output I saw:

Code: Select all

pi@raspberrypi ~/squeezeslavesrc $ ./squeezeslave -L
Output devices:
  0: (ALSA) C-Media USB Headphone Set: USB Audio (hw:0,0) (11/46)
  1: (ALSA) bcm2835 ALSA: bcm2835 ALSA (hw:1,0) (11/46)
  2: (ALSA) sysdefault (42/42)
  3: (ALSA) front (11/46)
  4: (ALSA) surround40 (11/46)
  5: (ALSA) iec958 (11/46)
  6: (ALSA) spdif (11/46)
  7: (ALSA) mmap0 (11/46)
  8: (ALSA) dmix (42/42)
* 9: (ALSA) default (11/46)
pi@raspberrypi ~/squeezeslavesrc $
The star tells which device is being used. But, I wanted to use device 0, which is the USB soundcard (with C-Media chip apperently).
You can tell squeezeslave to use a certain device at startup. You will have to add an option to the command line.

I did that like this:

Code: Select all

sudo nano /etc/init.d/squeezeslave
Look for the SSOPTIONS parameter:

Code: Select all

SSOPTIONS=
And add -o[Devicenumber], in my case it is zero, so I changed it to:

Code: Select all

SSOPTIONS=-o0
I also added this, but I don't know it that was necesarry, I don't even know what it does..:
I added the following to the /boot/cmdline.txt

Code: Select all

dwc_otg.speed=1
After restarting, squeeslave was playing over my USB soundcard. And the sound quality was excellent!

Now I had some PC speakers connected to the USB soundcard which have their own power adapter. And I had a power adapter for the Raspberry.
I really wanted to power everything with only one adapter, so I bought a powered USB hub, the D-Link DUB H4 powered USB hub.
I also bought a set of USB powered speakers. These were USB POWERED, the sound was still provided through a seperate lead with a 3.5 mm jack.
After connecting it all, I had to move the USB plugs around a bit on the hub, because I got popping noises on the sound card. Eventually I had
no problems anymore with this setup:
- USB speakers in the port on the hub that was originally meant for charging phones
- one hub USB port is connected to the micro USB port of the raspberry for power
- one raspberry USB port is connected to the mini A USB port on the hub (this extends the number of USB ports on the raspberry)
- the USB sound card on one of the USB ports on the hub

Now I had good quality sound again and only one power adapter to power it all.

The last thing I wanted was to have wireless network. I bought a wireless dongle, a nice small one (the LogiLink Wireless LAN USB 2.0 Nano Adapter) .
At first I connected it to the hub. But not only it didn't work, it also caused interference on the soundcard and/or speakers.
So I plugged into the last free USB port on the Raspberry. No more inteference.
After searching and trying stuff, I discovered I only had to edit one file, and put my SSID name and password there:

Code: Select all

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
And modify it so it looks like this:

Code: Select all

    ctrl_interface=/var/run/wpa_supplicant
    network={
    proto=RSN
    scan_ssid=1
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    ssid="your network ID in quote marks"
    psk="your network password in quote marks"
    }
I only had to add the network={ ... } stuff, and change the ssid and psk.

After restarting I used ifconfig and saw that there was a IP address assigned to the wlan!
I unplugged the network cable and I got wireless network up and running.
Now I've got a wireless audio streaming player that I can remote control with my android phone:

CLICK FOR YOUTUBE DEMO

The only problem I still have is that some internet radio streams don't stream in 44.1 Khz. And that's the only frequency Squeezeslave takes. Some stations sound to slow, and some sound like the smurfs, too fast..
I will have to see if I can convert the streams on the LMS server.

I ordered two more raspberies + pheripherals. One raspberry is going to be in my living room and one in my kitchen.
These two squeezeslave clients will be synchronised.
The other raspberry I plan to use as a portable device. I may even buy an old eighties radio and gut the insides, and
build the raspberry inside it.

Thank you all for posting on this forum, it was great help!!

Overview:
Image

Components:
- Raspberry Pi model B 256 mb memory
- D-Link DUB H4 powered USB hub
- LogiLink USB Soundcard
- LogiLink Wireless LAN USB 2.0 Nano Adapter
- Speedlink Snappy USB powered speakers
- 4 GB SD card
- LG optimus one android phone

Software:
- Raspian Wheezy sept. release
- Squeezeslave
- Logitech Media Server (squeezebox server)
- android app Squeezer
Last edited by Gerrelt on Mon Sep 30, 2013 4:19 pm, edited 1 time in total.
my Raspberry Pi page: http://raspberry.gerrelt.nl

HughPickard
Posts: 3
Joined: Sun Nov 04, 2012 11:00 am

Re: Squeezeslave up and running

Sun Nov 11, 2012 9:07 am

Gerrelt

It looks like you are at about the same stage as me. I 'cheated' and installed the squeezeplug image http://www.squeezeplug.de/ to get squeezeslave. I'm just investigating the available options I have when my Logitech hardware (Squeezebox, Duet and Boom) gives up - The display on the Duet is beginning to flicker. It's good to know there is a community out there seeking answers to this problem.

I'd be interested in other peoples experiences of USB DACs on the Raspi.

Hugh

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Sun Nov 11, 2012 1:34 pm

Hi Hugh,

Yeah, this works pretty good.
I don't even own a logitech squeezebox product.. I would have bought one, if they didn't change the product like the way they did.

Does squeezeplug have the same "problem" with streaming radio stations in different frequencies?

On youtube somebody suggested looking at OMXradio. I am going to look at that too.

Greetings,

Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

Stoker
Posts: 2
Joined: Wed Nov 14, 2012 1:41 pm

Re: Squeezeslave up and running

Wed Nov 14, 2012 1:54 pm

Hi Gerrelt
Gerrelt wrote: The only problem I still have is that some internet radio streams don't stream in 44.1 Khz. And that's the only frequency Squeezeslave takes. Some stations sound to slow, and some sound like the smurfs, too fast..
I will have to see if I can convert the streams on the LMS server.
Just thought I'd mention a new software player called Squeezelite which has recently become available. Squeezelite is written by Triode who has previously written several very useful Squeezebox plugins including Spotify and iPlayer. It seems that Squeezelite can handle streams at different frequencies (which might fix your radio problem) and it can play Spotify if you also use Triode's plugin.

I think people have managed to get it working on the Pi.

Link to thread on Squeezebox forums:
http://forums.slimdevices.com/showthrea ... sa-only%29

I'll be trying this myself when my Pi arrives!
Cheers
--Ian

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Wed Nov 14, 2012 9:53 pm

Wow, thank you very very much Stoker!! After I read your message I spent some time reading about it, and then mess about with it. And now (after 2 hours) I got it running!!

And YES, it solves my radio streaming problem! 8-)

Now I will test squeezelite and see if it's sturdy enough to play for hours.

Thanks again! :)

Greetings,

Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

User avatar
truehl
Posts: 642
Joined: Sun Mar 04, 2012 6:47 pm

Re: Squeezeslave up and running

Wed Nov 14, 2012 10:09 pm

Gerrelt wrote:Wow, thank you very very much Stoker!! After I read your message I spent some time reading about it, and then mess about with it. And now (after 2 hours) I got it running!!

And YES, it solves my radio streaming problem! 8-)

Now I will test squeezelite and see if it's sturdy enough to play for hours.

Thanks again! :)

Greetings,

Gerrelt.
SqueezeLite runs very stable and is already included in SqueezePlug. As far as I know, the versions you can download from here: http://code.google.com/p/squeezelite/downloads/list are for Debian SoftFloat, not for HardFloat, so they won't run on Raspbian. The included version in SqueezePlug is compiled for Debian HardFloat!
truehl
http://www.squeezeplug.de

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Thu Nov 15, 2012 6:42 pm

Ah, that explains why it stopped working now.. :D

OK, I am going to try to compile it on Raspbian Wheezy.

I am new to google code, can somebody tell me how to download all the sourcefiles?
my Raspberry Pi page: http://raspberry.gerrelt.nl

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Sat Nov 17, 2012 4:24 pm

I now got squeezelite up and running too, see thread: Squeezelite up and running. Thanks Stoker for the suggestion!
my Raspberry Pi page: http://raspberry.gerrelt.nl

g2pis
Posts: 1
Joined: Sun Nov 18, 2012 8:50 am

Re: Squeezeslave up and running

Mon Nov 19, 2012 6:10 am

your artice is fine ,thinks!




_____________________________________________________
I like video games and online games,the site is http://www.d3face.com/ .

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Mon Nov 19, 2012 7:56 pm

g2pis wrote:your artice is fine ,thinks!
No problem.
Squeezeslave works excllent as long as you don't use radio streams with different streaming frequency then 44100 Khz.
You might want to have a look at squeezelite too.

truehl wrote: SqueezeLite runs very stable and is already included in SqueezePlug. As far as I know, the versions you can download from here: http://code.google.com/p/squeezelite/downloads/list are for Debian SoftFloat, not for HardFloat, so they won't run on Raspbian. The included version in SqueezePlug is compiled for Debian HardFloat!
Since last friday there's a version for hard float available too!
my Raspberry Pi page: http://raspberry.gerrelt.nl

Stoker
Posts: 2
Joined: Wed Nov 14, 2012 1:41 pm

Re: Squeezeslave up and running

Tue Nov 20, 2012 9:14 am

Gerrelt wrote:I now got squeezelite up and running too, see thread: Squeezelite up and running. Thanks Stoker for the suggestion!
You're very welcome, just waiting for my Pi to arrive so that I can try this myself.
--Ian

djfake
Posts: 7
Joined: Fri May 25, 2012 2:44 pm

Re: Squeezeslave up and running

Wed Dec 12, 2012 6:39 pm

Here's how I connected my RPi at work, to my LMS at home using Squeezeslave.


http://my.opera.com/djfake/blog/2012/12 ... spberry-pi

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Wed Dec 12, 2012 8:45 pm

Nice write up!

But I am confused now....are you using Squeezelite or Squeezeslave? :)
my Raspberry Pi page: http://raspberry.gerrelt.nl

djfake
Posts: 7
Joined: Fri May 25, 2012 2:44 pm

Re: Squeezeslave up and running

Fri Dec 14, 2012 4:13 am

Squeezeslave won out because of the UI.

MyLastWord
Posts: 4
Joined: Wed Oct 12, 2011 7:33 pm

Re: Squeezeslave up and running

Thu Dec 20, 2012 1:34 am

djfake wrote:Here's how I connected my RPi at work, to my LMS at home using Squeezeslave.


http://my.opera.com/djfake/blog/2012/12 ... spberry-pi
If you got an 2x16 LCD hookup and with LCDd running, you can run 'Squeezeslave -l' (option l for lcdproc)
voila! "Now Playing" show on line1 and %title%(%artist%) scrolling on line2.

gabello
Posts: 51
Joined: Sun Aug 05, 2012 8:02 pm

Re: Squeezeslave up and running

Fri Jan 11, 2013 11:43 am

I'm very new to squeezebox world. I understand that beside connecting to your own squeezboxserver one squeezebox hardware can also connect to mysqueezbox.com. Is this possible using squeezelite from raspberry pi? if yes how do i specify the mysqueezebox address/login details?

harlock74
Posts: 182
Joined: Fri Jan 18, 2013 10:47 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 10:50 am

Hi all,

I hope you can help me out with the Squeezeplug configuration. I have installed Squeezeplug on my Raspberry PI by following these steps, as per squeezeplug.de website:

--------------------------------------------------------------------------------------
How to install SqueezePlug?
The Image comes as 3 GB! So it fits on 4 GB SD-Cards, not on 2 GB. 3 GB is chosen for compatibility with different sizes of 4 GB SD-Cards. You should expand the SD-Card to it’s full size during the initial setup.

1. Download, unzip and burn the sd-card
2. Start the Pi and find out the IP-Address (e.g. from an attached monitor, from your router or a tools like Advanced IP Scanner v2).
3. login with user: root and pw: nosoup4u
4. Follow the initial steps
a. Update SqueezePlug
b. Expand the Root-Filesystem to the maximum SD-Card size
5. type “setup” and choose the options you need and the scripts will do the rest for you.

--------------------------------------------------------------------------------------

I am running the Logitech Media Server on a separate dedicated Server (Linux Ubunutu 12.04 based). All I want to do is to set up my Raspberry PI as a Player (I am trying a solution to replace my Squeezebos Touch). So I did run setup from the Raspberry terminal and I went through the configuration to install Squuezeslave. Now I am completely lost because I can't connect to the Player at all. When I try to get connected to it through the web page http://<my_IP_address:9000/>, the wep page won't load. I am sure I am missing something but I wouldn't know what. I would appreciate if someone could explain me what to do

Many thanks in advance for your kind help!

teapickles
Posts: 2
Joined: Sat Mar 10, 2012 1:23 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 2:15 pm

Hiya,

I received my Pi yesterday, and have just set up Squeezeport and Squeezelite today, all in about an hour! Been listening to my LMS server (on my Windows machine just now) as well as Internet radio, through my home cinema speakers, controlled from my Android, as. Amazed at how easy it's been so far...

harlock74 - first, most simple question. Have you installed webmin from the Squeezeplug setup, in order to access the player via the web? That's the stage I'm at just now.

harlock74
Posts: 182
Joined: Fri Jan 18, 2013 10:47 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 2:28 pm

Hi,
Thanks for your kind response.
How can I install webmin from the Squeezeplug setup?
Cheers

harlock74
Posts: 182
Joined: Fri Jan 18, 2013 10:47 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 2:32 pm

Teapeackles,
I would really appreciate if you could list for me all the steps you followed to get Squeezeslave up and running. I am sure I am missing something somewhere:(
Thanks sooo much!!!!!!!

teapickles
Posts: 2
Joined: Sat Mar 10, 2012 1:23 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 5:04 pm

Hiya,

My set up uses Squeezelite rather than Squeezeslave actually. I've not tried Squeezeslave, so can't really say what the differences are. But it's worked straight off for me as described, so I'll try and give you the steps I used (once Squeezeplug was all loaded)...

If you're at the Squeezeplug basic screen: root@squeezeplug:~#
Type

Code: Select all

setup
Then presuming you've finished setting up Squeezeplug (6.1 update, & Expand_RootFS), go as follows:

Server_and_Player >
Player >
Squeezelite >
Install

and follow instructions from there!

Does that help at all?

harlock74
Posts: 182
Joined: Fri Jan 18, 2013 10:47 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 5:08 pm

Hi,
Many thanks. I will try and I will let you know. I will do a fresh install of Squeezeplug and then I will install Squeezelite!
Cheers

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 5:44 pm

If your feeling techy, you could also install squeezelite yourself without using squeezeplug. I described the procedure in this thread: Squeezelite up and running on Raspian Wheezy Hard Float.

I don't have any experience with squeezeplug, but installing squeezelite with squeezeplug will probably be a lot easier.
my Raspberry Pi page: http://raspberry.gerrelt.nl

User avatar
truehl
Posts: 642
Joined: Sun Mar 04, 2012 6:47 pm

Re: Squeezeslave up and running

Fri Jan 18, 2013 6:01 pm

Gerrelt wrote:If your feeling techy, you could also install squeezelite yourself without using squeezeplug. I described the procedure in this thread: Squeezelite up and running on Raspian Wheezy Hard Float.

I don't have any experience with squeezeplug, but installing squeezelite with squeezeplug will probably be a lot easier.
SqueezePlug offers more than just a player. You can choose between a brunch of servers and players and a lot of other interesting things. It comes as a complete Raspbian Hf or SF image so you can also use it like the foundation images. If you use the SF version you can also run Spotify with LMS and SqueezeLite you can't do it with the Raspbian image. All setups are made as user friendly as possible so installing e.g. of SqueezeLite, SqueezeSalve, LMS, and all the other things is very easy. Start scripts and update functions are also included. Even un-install functions are in place, so you can test SqueezeSlave and SqueezeLite and you can switch between these two installations.

A patch to version 6.02 is on the way an will make things even better!
truehl
http://www.squeezeplug.de

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: Squeezeslave up and running

Fri Jan 18, 2013 6:19 pm

Yes, squeezeplug is lot more then just a squeezebox player, sorry I left that out.

Truehl, you're doing great work! Keep it up. I've allready recommended squeezeplug to several other people. 8-)
my Raspberry Pi page: http://raspberry.gerrelt.nl

Return to “Graphics, sound and multimedia”