Add alarm sound support
This commit is contained in:
+13
@@ -20,14 +20,17 @@ function pa-volume() {
|
||||
}
|
||||
|
||||
function pa-volume-normal() {
|
||||
info "Volume set to Normal"
|
||||
pa-volume 15
|
||||
}
|
||||
|
||||
function pa-volume-loud() {
|
||||
info "Volume set to HIGH!"
|
||||
pa-volume 25
|
||||
}
|
||||
|
||||
function pa-volume-quiet() {
|
||||
info "Volume set to low"
|
||||
pa-volume 8
|
||||
}
|
||||
|
||||
@@ -61,6 +64,16 @@ function pa-announcement-quickest() {
|
||||
play $SOUNDS/announcement_4-tone_up_quickest.ogg
|
||||
}
|
||||
|
||||
function pa-alarm-start() {
|
||||
info "Alarm started"
|
||||
play -loop 0 $SOUNDS/alarm_simple.ogg &
|
||||
}
|
||||
|
||||
function pa-alarm-stop() {
|
||||
info "Alarm stopped"
|
||||
killall $PLAYER
|
||||
}
|
||||
|
||||
function pa-say() {
|
||||
info "Say: $@"
|
||||
$SPEAK "$@"
|
||||
|
||||
Reference in New Issue
Block a user