<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>spotify-tui on Kevin Heruer</title><link>/tags/spotify-tui/</link><description>Recent content in spotify-tui on Kevin Heruer</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 24 Dec 2020 09:36:34 +0100</lastBuildDate><atom:link href="/tags/spotify-tui/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Spotify From a Terminal</title><link>/posts/2020/12/24/running-spotify-from-a-terminal/</link><pubDate>Thu, 24 Dec 2020 09:36:34 +0100</pubDate><guid>/posts/2020/12/24/running-spotify-from-a-terminal/</guid><description>This post exist of two different projects, the first one is Spotify-tui, and de second is Spotifyd.
Spotify-tui Spotify-tui is a terminal interface using the web API and is witten in the Rust language, however, it does not play the songs itself. It only uses the API to select/play a song, you&amp;rsquo;ll need another piece of the puzzle to actually play the music.
Since Spotify-tui is written in Rust it&amp;rsquo;s very memory efficient and safe, meaning it will never do unexpected things.</description><content>&lt;p>This post exist of two different projects, the first one is &lt;a href="https://github.com/Rigellute/spotify-tui">Spotify-tui&lt;/a>,
and de second is &lt;a href="https://github.com/Spotifyd/spotifyd">Spotifyd&lt;/a>.&lt;/p>
&lt;h2 id="spotify-tui">Spotify-tui&lt;/h2>
&lt;p>Spotify-tui is a terminal interface using the web API and is witten in the Rust language, however, it does not play
the songs itself. It only uses the API to select/play a song, you&amp;rsquo;ll need another piece of the puzzle to actually
play the music.&lt;/p>
&lt;p>Since Spotify-tui is written in Rust it&amp;rsquo;s very memory efficient and &lt;a href="https://doc.rust-lang.org/nomicon/meet-safe-and-unsafe.html">safe&lt;/a>,
meaning it will never do unexpected things. Running Spotify-tui it only uses 16MB of RAM and it has been running for 11+ hours.&lt;/p>
&lt;p>You may argue that 16MB of RAM is a lot, but in the world of applications and even command line applications running on JavaScript it&amp;rsquo;s a
godsend. Spotify itself is around 200MB.&lt;/p>
&lt;h2 id="spotifyd">Spotifyd&lt;/h2>
&lt;p>The other part of the puzzle is Spotifyd, a Spotify daemon written in Rust. It&amp;rsquo;s a tiny Spotify client using only around 8MB of RAM.
However, Spotifyd is not just specifically for Spotify-tui, it&amp;rsquo;s a generic daemon. You could also use your Spotify app and stream it
to the daemon using the device list in the app.&lt;/p>
&lt;p>This means you could create your own smart speaker for cheap! Or you could hook up a raspberry pi zero to your old sound system and
give your old system new streaming functionalities.&lt;/p></content></item></channel></rss>