Soundmachine API

INTRO

API documentation of https://foutaise.org/soundmachine/

GET https://foutaise.org/soundmachine/api/help

Display this API documentation.

Response

text/html

GET https://foutaise.org/soundmachine/api/sounds

List available sounds.

Response

application/json: array of sound names

Example

    curl https://foutaise.org/soundmachine/api/sounds

GET https://foutaise.org/soundmachine/api/sounds/{sound}

Return the mp3 file for a sound

URI parameter

sound: string (required)

Name of the sound to retrieve.

Response

audio/mpeg

Example

    mpv https://foutaise.org/soundmachine/api/sounds/fart