← 返回 Skills 市场
stanestane

Freesound API

作者 Stanislav Stankovic · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
124
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install freesound-api
功能描述
Set up and use Freesound API access from a local Windows OpenClaw workspace with OAuth login, local credential storage, and sound search helpers. Use when th...
使用说明 (SKILL.md)

freesound-api

Use this as a local-only skill. Do not publish Freesound client secrets inside the skill.

Local storage

This skill stores credentials in:

  • %APPDATA%\OpenClaw\freesound-api\credentials.json

Keep the secret there, not in SKILL.md.

Setup credentials

Save the app credentials locally:

python scripts\setup_credentials.py --client-id '\x3CCLIENT_ID>' --client-secret '\x3CCLIENT_SECRET>' --redirect-uri 'http://localhost:8787/callback'

Use the same redirect URI here that was registered in Freesound.

Complete OAuth login

Run:

python scripts\oauth_login.py

What it does:

  1. Starts a temporary localhost callback server on port 8787
  2. Opens the Freesound authorization page in the browser
  3. Receives the authorization code at http://localhost:8787/callback
  4. Exchanges it for an access token
  5. Saves the token back into %APPDATA%\OpenClaw\freesound-api\credentials.json

If the browser does not open, copy the printed URL manually.

Search sounds

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.

Get sound details

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.

Download 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.

Public-safe publishing

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.

Notes

  • Keep the redirect URI consistent. A mismatch will break the token exchange.
  • Prefer OAuth login for user-level access.
  • If a secret was pasted into chat, treat it as exposed and rotate it after testing.
  • If requests is missing locally, install it in the Python environment before running the scripts.
安全使用建议
This skill appears coherent and implements a local OAuth and search/download helper for Freesound. Before using: (1) inspect the included scripts yourself (they are bundled) and run them in an isolated Python environment; (2) be aware credentials are saved in plaintext at %APPDATA%/OpenClaw/freesound-api/credentials.json — do not commit that file or paste secrets into chat; (3) the OAuth flow starts a localhost server and opens your browser to complete login (expected); (4) verify that using the saved client_secret as an API 'token' matches your Freesound app configuration; (5) if a secret becomes exposed, rotate it immediately.
功能分析
Type: OpenClaw Skill Name: freesound-api Version: 0.1.0 The skill provides a legitimate interface for interacting with the Freesound API, including support for OAuth2 authentication, sound searching, and file downloads. It follows security best practices by advising users to store credentials locally in a dedicated directory (%APPDATA%\OpenClaw\freesound-api\) rather than hardcoding them in the skill instructions. The code (scripts/oauth_login.py, scripts/api_utils.py) is well-structured, implements standard state validation for OAuth, and lacks any indicators of data exfiltration, malicious execution, or prompt injection.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (Freesound API helpers: OAuth, local credential storage, search, download) aligns with included scripts (setup_credentials, oauth_login, search_sounds, download_sound, sound_details, and helpers). No unrelated binaries or environment variables are required.
Instruction Scope
SKILL.md instructs running included Python scripts, starting a localhost callback server, opening the browser, and saving credentials to %APPDATA% — all consistent with local OAuth flow. It only references the credential file and local scripts. Note: the code saves client_secret and tokens in plaintext under %APPDATA% (credentials.json), which is expected but worth noting. Also api_utils falls back to using the saved client_secret as an API 'token' parameter if no OAuth token exists; confirm this matches your Freesound app expectations (some APIs expose a separate API key).
Install Mechanism
No install spec; this is instruction-only with bundled Python scripts. The only dependency called out is the 'requests' library, which SKILL.md mentions to install if missing. No remote downloads or archive extraction are performed by the skill itself.
Credentials
The skill requests no environment variables or external credentials at install time. It does read APPDATA (to compute the local storage path) and writes client_id/client_secret and OAuth tokens to %APPDATA%/OpenClaw/freesound-api/credentials.json. Storing secrets locally in plaintext is expected here but has the usual risk if the machine is shared or backups are synced — rotate secrets if exposed.
Persistence & Privilege
always is false and the skill does not request persistent platform-wide privileges. It only creates and uses its own application directory and credential file; it does not modify other skills or system-wide agent configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install freesound-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /freesound-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial public release: localhost OAuth setup, search filters, sound details, original downloads, and preview downloads.
元数据
Slug freesound-api
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Freesound API 是什么?

Set up and use Freesound API access from a local Windows OpenClaw workspace with OAuth login, local credential storage, and sound search helpers. Use when th... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。

如何安装 Freesound API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install freesound-api」即可一键安装,无需额外配置。

Freesound API 是免费的吗?

是的,Freesound API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Freesound API 支持哪些平台?

Freesound API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Freesound API?

由 Stanislav Stankovic(@stanestane)开发并维护,当前版本 v0.1.0。

💬 留言讨论