To hear sound, play is needed. It comes with the sox package and seems to need some extra files
sudo apt-get install sox libsox-fmt-base libsox-fmt-ao
To get SSL connections working (e.g. Google Talk needs this) following plugin is needed
sudo apt-get install libqca2-plugin-ossl
libqca2-plugin-gnupg
If the server allows it, Psi can use PEP to inform your friends what you are currently listening to.
The file used for this is .psi/tune.
For Songbird there is an addon called “Now Chirping”.
Edit this file: ~/.songbird2/<profile>/extensions/nowchirping@saebekassebil.com/chrome/content/js/nowchirping.js
Navigate to this function:
NowChirping.prototype.saveLocalFile = function() ...
and change following line from:
foStream.init(file, 0x02 | 0x08 | 0x10, 0666, 0);
to
foStream.init(file, 0x02 | 0x08 | 0x20, 0666, 0);
This changes the behaviour from “Append” to “Overwrite”.
Now enable local chirping in the Addons Prefs. The path would be /home/<user>/.psi/tune. The Data fieldshould contain something like:
%title% %artist% %album%
Now Chirping only writes to the file when a song starts. It does not delete the file when the playback is stopped. To prevent Psi from showing the last song you listened to for 2 decades or so this file has to be deleted.
This script should be invoked as a cronjob (Has to be made executable first).
Removes a given file after its age passed the given time. If file is updated within this timespan, nothing is done.
rm_tune_from_psi.sh FILE TIME
FILE /Path/to/tunefile, e.g. /home/semok/.psi/tune
TIME Age of the tunefile, after which it should be deleted in minutes
./rm_tune_from_psi.sh /home/semok/.psi/tune 10 - Removes tune file after 10 minutes.