Git Product home page Git Product logo

soundcli's Introduction

SOUNDCLI

soundCLI is a command line client for streaming music from soundcloud. Timed comments are displayed on the command line as the playback reaches their respective positions.

button

Examples

Installation

You can either install this as a gem from RubyGems.org, build the gem yourself, or execute it without installation. To simply run soundcli, issue the following command from within the soundcli directory.

ruby -Ilib ./bin/soundcli http://soundcloud.com/rekado/chroma

Here's how to build and install this gem manually.

gem build soundcli.gemspec
gem install ./soundcli-0.0.4.gem

Then you can use this simpler command to stream a song:

./bin/soundcli http://soundcloud.com/rekado/chroma

You probably should configure rubygems to install to /usr/local/bin or some other directory that's in your PATH to execute it from any directory.

Packaging

The preferred way is, of course, to install soundCLI through your distribution's package manager (pretend you didn't read this if you are using MacOS). SoundCLI has been packaged for the following GNU/Linux distributions:

You can inspect the package file descriptions in the directory pkgdesc. Feel free to submit package descriptions for other systems.

Setup

soundCLI will save your authentication/refresh tokens (not your credentials) in a file, so you only need to provide your credentials once. The token file will be saved to $XDG_CONFIG_HOME/soundcli/auth.

mkdir ~/.config/soundcli

Dependencies

  • ruby (I'm using 1.9.2 and above, but lower versions might work, too. Ruby 1.8.7 doesn't seem to work.)

  • gstreamer bindings for ruby (gstreamer)

  • cURL bindings for ruby (curb)

  • the JSON gem (json)

Bugs

  • download only returns the download url but does not download yet

Troubleshooting

Q: I get a weird error message when attempting to stream a file:

No URI handler implemented for "http"
gsturidecodebin.c(1065): gen_source_element (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0

A: You are probably missing some gstreamer plugins. Install a bunch of them through your package management system and see if the error disappears.

Q: When attempting to run soundCLI I get an error:

no such file to load -- json/gst/curb in ...

A: You need to install the gems listed in the section DEPENDENCIES

Q: During installation of the gem I get this error:

checking for gstreamer-0.10... yes
checking for gstreamer-plugins-base-0.10... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

A: You are missing the gstreamer base plugins. If you are on Mac, you should install gst-plugins-base with brew. On Archlinux the package is called gstreamer0.10-base-plugins.

License

This code is licensed under the GPL v3.

soundcli's People

Contributors

areina avatar rekado avatar doublerebel avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.