Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know how can I get the current song information (title, artist, album etc) no matter what player is running. I saw some KDE widget can do that.

How can I do that? is there any standard protocol or interface to get song information?

share|improve this question

A simple method from the command line would be to read the output from pulseaudio to list properties of a sink input by running the following command in a terminal

pacmd list-sink-inputs

By this we can see the application that initiated a stream as well as other song properties from metatags (including artist, title, etc.) if available.

share|improve this answer

There's no standard protocol to do that, the widget you're talking about are just handling a lot of protocols. For exemple, Amarok has is own way, VLC another etc...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.