Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    763

    [Announce] LMS Announce - play announcements / notifications

    LMS Announce is a plugin providing a web API for playing announcements / notifications (audio / speech), enabling integration with anything able to call an URL with parameters.
    More information on the homepage

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,043
    Well done for pulling this together.

    First suggestion for addition (and I have not even tried it yet) ...
    In the Announce function how about a pre-roll/post-roll configurable sound (to make a "bing bong" to get attention of audience)?
    Could be a default pair of sounds and disabled ... then enable and choose other sounds via GET parameter.
    Last edited by Paul Webster; 2018-05-28 at 06:33.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    763
    Quote Originally Posted by Paul Webster View Post
    In the Announce function how about a pre-roll/post-roll configurable sound (to make a "bing bong" to get attention of audience)?
    Could be a default pair of sounds and disabled ... then enable and choose other sounds via GET parameter.
    Interesting idea, but too much effort unless there is a huge demand for it (very unlikely imho)
    Workaround:
    - for static announcements, use a playlist
    - for speech, install sox and create a shell script:
    Code:
     #!/bin/bash                                                                                                                                                                                                                                       
    SOUND=/path/to/beep.flac 
    while getopts "o:t:" opt; do
            case $opt in
                    o)
                    DESTFILE="$OPTARG"
                    ;;
                    t)
                    TEXT="$OPTARG"
                    ;;
            esac
    done
    mimic -o "${DESTFILE}.tmp" -voice slt -t "$TEXT"
    sox "${DESTFILE}.tmp" -t sox - channels 2 rate 44100 | sox "$SOUND" -t sox - "$DESTFILE" 
    rm  "${DESTFILE}.tmp"
    and use it as a TTS engine:
    Code:
    	"mimic-beep": {
    		"cmd": "/path/to/script.sh",
    		"output": "-o ",
    		"options": "",
    		"text": "-t"
    	}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •