4

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?

Bruno Pereira
  • 72,895
  • 33
  • 199
  • 223
Shiplu Mokaddim
  • 398
  • 1
  • 5
  • 20
  • 2
    Does this answer your question? [Command to get list of all media playing](https://askubuntu.com/questions/1298707/command-to-get-list-of-all-media-playing) – Pablo Bianchi Jul 14 '22 at 16:29
  • @PabloBianchi Thanks. It does answer my question. But after 10 years my neurons' links were garbage collected. I can't recall anything. – Shiplu Mokaddim Jul 18 '22 at 19:50

2 Answers2

3

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.

Takkat
  • 140,996
  • 54
  • 308
  • 426
0

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...

Bahaïka
  • 925
  • 6
  • 17