Yauap - Commandline Audio Player

If there's software you need and you can't find, make a request for it.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Yauap - Commandline Audio Player

Post by zAchAry »

Yauap is a simple commandline audio player based on the GStreamer multimedia framework. There is also a DBus interface that allows yauap to act as a backend for the Amarok audio player. Yauap is free software. Available under the terms of the GNU LESSER GENERAL PUBLIC LICENSE.
Website: http://www.nongnu.org/yauap/

I know that amp is already available but it has two shortages:
1. The main shortage is that amp can't play when moc, cmus, or other players that play 'audio', are playing.
2. The second one is that amp can't play ogg, wav (but it can be converted to mp3, though).

Why do I need it?
To tell to conky to play a sound file (this or this) when the uploading rate of the to the interwebz will be under 60 kb/s.


Edit: (if uploading rate speed of eth0 is less than 55 kb/s then activate script)

Inside of .conkyrc

Code: Select all

${if_match ${upspeedf eth0} <= 55}${execp .scripts/yauap.sh}${endif}
yauap.sh

Code: Select all

#!/bin/bash
yauap /tmp/12677__Peter_Gross__Sonar_pings.ogg | echo '${alignc}${color RED}ALERT${color}'

Code: Select all

#!/bin/bash
yauap /tmp/12677__Peter_Gross__Sonar_pings.ogg | echo '${voffset 13}${alignc}${color RED}ALERT${color}${voffset -13}'

Code: Select all

#!/bin/bash
yauap /tmp/12677__Peter_Gross__Sonar_pings.ogg | echo '${voffset 13}${alignc}${blink ${color RED}ALERT}${color}${voffset -13}'
You may also want to write a command, inside the script, to upload a message to your damned ISP that says: "You are cheating. Fix the upload speed or I'll sue you!" ;)
Image
Help to make Slackware easier Donate to Salix
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Yauap - Commandline Audio Player

Post by thenktor »

zAchAry wrote:1. The main shortage is that amp can't play when moc, cmus, or other players that play 'audio', are playing.
Then dmix is not configured correctly or moc is configured to use the hardware device instead of the dmix device.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Yauap - Commandline Audio Player

Post by zAchAry »

thenktor wrote:Then dmix is not configured correctly or moc is configured to use the hardware device instead of the dmix device.
http://alsa.opensrc.org/index.php/Dmix

I'm using a binary file from debian, and it works fine enough :P

Code: Select all

http://packages.debian.org/sid/i386/yauap/download
http://packages.debian.org/sid/yauap
Image
Help to make Slackware easier Donate to Salix
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Yauap - Commandline Audio Player

Post by zAchAry »

I'm using mpg123 or ogg123.

mpg123 - play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)
ogg123 - plays Ogg Vorbis files

As long as I can ply OGG I'll be happy :)
Image
Help to make Slackware easier Donate to Salix
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Yauap - Commandline Audio Player

Post by thenktor »

You can use MPlayer to play all sound formats on command line.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply