Install
openclaw skills install freesound-apiSet up and use Freesound API access from a local Windows OpenClaw workspace with OAuth login, local credential storage, and sound search helpers. Use when the user wants to register or use a Freesound API app, save a Freesound client id and client secret locally, complete localhost OAuth login, search Freesound sounds, or fetch Freesound data without exposing secrets in a published skill.
openclaw skills install freesound-apiUse this as a local-only skill. Do not publish Freesound client secrets inside the skill.
This skill stores credentials in:
%APPDATA%\OpenClaw\freesound-api\credentials.jsonKeep the secret there, not in SKILL.md.
Save the app credentials locally:
python scripts\setup_credentials.py --client-id '<CLIENT_ID>' --client-secret '<CLIENT_SECRET>' --redirect-uri 'http://localhost:8787/callback'
Use the same redirect URI here that was registered in Freesound.
Run:
python scripts\oauth_login.py
What it does:
8787http://localhost:8787/callback%APPDATA%\OpenClaw\freesound-api\credentials.jsonIf the browser does not open, copy the printed URL manually.
Run:
python scripts\search_sounds.py "rain" --page-size 10
Examples with filters:
python scripts\search_sounds.py "rain" --license cc0 --duration-min 5 --duration-max 60
python scripts\search_sounds.py "thunder" --tag storm --tag ambience
python scripts\search_sounds.py "wind" --filter "samplerate:[44100 TO *]"
The search helper prefers OAuth bearer token auth if available. If there is no OAuth token yet, it falls back to using the saved Freesound secret as the token parameter for simple API calls.
Run:
python scripts\sound_details.py 322965
Use this to inspect metadata, previews, ratings, tags, format details, and the direct download endpoint for a sound.
Run:
python scripts\download_sound.py 322965 --out-dir downloads
Download a preview instead of the original file:
python scripts\download_sound.py 322965 --preview hq-mp3 --out-dir previews
This saves the original file or selected preview into the chosen output directory using the current OAuth token or saved API key.
If publishing this skill publicly, publish only the skill folder and scripts. Do not publish %APPDATA%\OpenClaw\freesound-api\credentials.json or any client secret.
requests is missing locally, install it in the Python environment before running the scripts.