{"id":268641,"date":"2018-07-17T14:57:25","date_gmt":"2018-07-17T12:57:25","guid":{"rendered":"https:\/\/mybroadband.co.za\/news\/?p=268641"},"modified":"2018-07-17T14:59:11","modified_gmt":"2018-07-17T12:59:11","slug":"building-a-spotify-speaker-using-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/mybroadband.co.za\/news\/hardware\/268641-building-a-spotify-speaker-using-a-raspberry-pi.html","title":{"rendered":"Building a Spotify speaker using a Raspberry Pi"},"content":{"rendered":"<p>Now that South Africans have access to Spotify&#8217;s music streaming platform, and its <a href=\"https:\/\/mybroadband.co.za\/news\/it-services\/268457-spotify-discover-weekly-launched-in-south-africa.html\" target=\"_blank\" rel=\"noopener\"><strong>latest features<\/strong><\/a>, we can make use of its integrated connectivity options.<\/p>\n<p>Certain of these features require supported hardware, however, such as smart speaker systems, or are only compatible with newer speakers.<\/p>\n<p>If you have a Spotify Premium subscription and would like to stream music directly to your speaker over your home Wi-Fi network, though, you can use a Raspberry Pi to turn an old speaker into a Spotify-connected sound system.<\/p>\n<p>This is a relatively simple process and uses Spotify Connect to easily integrate into your home network.<\/p>\n<h3 class=\"my-4\">Spotify Connect<\/h3>\n<p><a href=\"https:\/\/www.spotify.com\/za\/connect\/\" target=\"_blank\" rel=\"noopener\"><strong>Spotify Connect<\/strong><\/a> allows users to play their music through compatible speakers on the same Wi-Fi network as their smartphone.<\/p>\n<p>Using the Spotify app as a remote, users can control playlists, volume, and more directly from their smartphone.<\/p>\n<p>This feature is only available to Spotify Premium subscribers &#8211; the R59.99-per-month package.<\/p>\n<p>Spotify Premium also allows unlimited listening with no adverts, offline listening, unlimited track skips, shuffle play, and higher-quality audio.<\/p>\n<p>Once active, compatible speakers are listed in an &#8220;available devices&#8221; menu in the Spotify app &#8211; allowing users to switch playback from their device to a Wi-Fi-connected speaker.<\/p>\n<p>To set up your own Spotify-compatible speaker, you will need an existing sound system and a Raspberry Pi.<\/p>\n<p><a href=\"https:\/\/www.pifactory.co.za\/product-category\/boards\/\" target=\"_blank\" rel=\"noopener\"><strong>Any Raspberry Pi model<\/strong><\/a> should work, although you will need to have Wi-Fi connectivity using either a Wi-Fi dongle or the built-in Wi-Fi adapter on certain Pi models.<\/p>\n<p>You will also need an SD card with a minimum size of 8GB for the Raspbian operating system.<\/p>\n<div id=\"attachment_268647\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a  data-lightbox=\"post-image\" href=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2018\/07\/Spotify-Connect.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-268647\" class=\"wp-image-268647 size-full\" src=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2018\/07\/Spotify-Connect.jpg\" alt=\"Spotify Connect interface.\" width=\"640\" height=\"430\" srcset=\"https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2018\/07\/Spotify-Connect.jpg 640w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2018\/07\/Spotify-Connect-300x202.jpg 300w, https:\/\/mybroadband.co.za\/news\/wp-content\/uploads\/2018\/07\/Spotify-Connect-595x400.jpg 595w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-268647\" class=\"wp-caption-text\">Spotify Connect interface.<\/p><\/div>\n<h3 class=\"my-4\">Raspotify<\/h3>\n<p>Before getting Spotify Connect to work on your Raspberry Pi, you will need to set up your Pi&#8217;s operating system.<\/p>\n<p>Download the latest version of NOOBS from the official Raspberry Pi website and install it onto your SD card.<\/p>\n<p>Insert the SD card into your Pi and connect the board&#8217;s power supply to boot it up. Connect a keyboard and mouse, too, for the setup of your smart speaker.<\/p>\n<p>You must then connect your Pi to your home Wi-Fi network, and the Internet, and install the latest Raspbian operating system available on the NOOBS image.<\/p>\n<p>The next step is to download and install <a href=\"https:\/\/dtcooper.github.io\/raspotify\" target=\"_blank\" rel=\"noopener\"><strong>Raspotify<\/strong><\/a>, dtcooper&#8217;s Spotify Connect client for the Raspberry Pi.<\/p>\n<p>This client is built on the open-source librespot library, which implements Spotify Connect compatibility across numerous devices.<\/p>\n<p>To install the client, start up the Pi terminal (Raspbian&#8217;s command line interface) and type in the following:<\/p>\n<blockquote><p>curl -sL https:\/\/dtcooper.github.io\/raspotify\/install.sh | sh<\/p><\/blockquote>\n<p>Press Enter and wait for the installation to complete. Once it is finished, you are ready to connect your speaker.<\/p>\n<p>Simply plug the audio jack of your speaker system into the audio port on your Raspberry Pi, and then disconnect all peripherals.<\/p>\n<p>If the Raspberry Pi is connected to the same Wi-Fi network as your smartphone, you should be able to see the speaker under your &#8220;available devices&#8221; menu in the mobile app &#8211; allowing you to stream audio through your new Spotify-connected speaker.<\/p>\n<p>This installation does not require any login from the Raspberry Pi interface, meaning others with Spotify accounts will also be able to stream music through your speaker &#8211; as long as they are connected to the same network.<\/p>\n<p>Users looking to implement a similar solution for multiple music streaming platforms can reference the\u00a0<a href=\"http:\/\/www.pimusicbox.com\/\" target=\"_blank\" rel=\"noopener\"><strong>Pi MusicBox project<\/strong><\/a>, which includes support for Podcasts, Google Play Music, and SoundCloud.<\/p>\n<h3 class=\"my-4\">Now read:\u00a0<a href=\"https:\/\/mybroadband.co.za\/news\/hardware\/241380-how-to-turn-a-raspberry-pi-into-a-crypto-wallet.html\" rel=\"bookmark\">How to turn a Raspberry Pi into a crypto wallet<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>You can use a Raspberry Pi to turn an old speaker into a Spotify-connected sound system.<\/p>\n","protected":false},"author":341028,"featured_media":268645,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[35,8043,44302,7927,52477],"class_list":["post-268641","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hardware","tag-headline","tag-raspberry-pi","tag-smart-speaker","tag-spotify","tag-spotify-connect"],"_links":{"self":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/268641"}],"collection":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/users\/341028"}],"replies":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/comments?post=268641"}],"version-history":[{"count":1,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/268641\/revisions"}],"predecessor-version":[{"id":268653,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/posts\/268641\/revisions\/268653"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media\/268645"}],"wp:attachment":[{"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/media?parent=268641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/categories?post=268641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mybroadband.co.za\/news\/wp-json\/wp\/v2\/tags?post=268641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}