Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Jun 2010
    Location
    California, USA
    Posts
    221

    How to loop a short audio file using for alarm?

    I tried to use a short audio file for alarm sound in a radio. The file played once then follow by the default alarm sound. How do I loop a audio file? Thanks.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,525

    How to loop a short audio file using for alarm?

    > I tried to use a short audio file for alarm sound in a radio. The file
    > played once then follow by the default alarm sound. How do I loop a
    > audio file? Thanks.


    Try to get the file's URL. It should be something like
    file:///path/to/file.mp3 or similar. Replace the "file:" prefix with
    "loop:".

    Please note that this will only (if at all) work with short files.

    --

    Michael

  3. #3
    Senior Member
    Join Date
    Jun 2010
    Location
    California, USA
    Posts
    221
    Thanks Michael. Here's what I try on the web GUI. Save the audio file to the Favorites. Edit the favorite to change "file:" to "loop:". But it not even play. Then I saved one of the Sounds and Effects to the favorite and it has the "loop:" prefix and looping when play.

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,525

    How to loop a short audio file using for alarm?

    > Thanks Michael. Here's what I try on the web GUI. Save the audio file
    > to the Favorites. Edit the favorite to change "file:" to "loop:". But
    > it not even play. Then I saved one of the Sounds and Effects to the
    > favorite and it has the "loop:" prefix and looping when play.


    Well... I thought this might be too simple an approach: the protocol
    handler for loop: expects the file to be available over http, not a
    local file :-(.

    If you had a web server somewhere which could serve up the file. You
    could even use LMS to do so, but would probably have to put the file
    back in place after updates (depends on the installation). Or you could
    write your own little plugin to serve that file from within LMS? Or
    write another protocol handler to handle a "localloop:" protocol.

    That's a few options you have in increasing effort order :-).

    --

    Michael

  5. #5
    Senior Member agbagb's Avatar
    Join Date
    Aug 2006
    Posts
    478
    I haven't done it in a while - and thus can't recall the steps necessary - but in, say, Audacity it's pretty easy to make your own loop mp3. So an option is to point the Radio Alarm at an existing mp3 file on your local server that is itself a slef-made loop - and that looping can last as long as you want.
    LMS 8.0.1 (1606118512)
    Win10
    Control: Web GUI; sometimes OrangeSqueeze on Android phones / pads

    Machines / devices are in France, in two locations.
    a) Livebox 4
    Internal HDD (FLAC music; mp3 voice), Desktop
    3 x Touch - 2 wireless, 1 LAN. (7.8.0-r16754)
    3 x SB Radios [2 wireless, 1 LAN] (7.7.3-r16676)
    1 x Riva Arena (via Airplay LMS PlugIn)

    b) Freebox
    External SSD (all mp3), WiFi Laptop
    1 x Touch LAN (Firmware:7.8.0-r16754)
    2 x SB Radios, Wireless (7.7.3-r16676)

  6. #6
    Senior Member
    Join Date
    Jun 2010
    Location
    California, USA
    Posts
    221
    Thank you all for the suggestions.

Posting Permissions

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