π¦ ClawHub
OpenRouter Audio
by @odubinkin
Audio transcription and text-to-speech generation using OpenRouter API. Use when the user needs to transcribe audio files to text or generate speech/audio fr...
TERMINAL
clawhub install openrouter-audioπ About This Skill
name: openrouter-audio description: Audio transcription and text-to-speech generation using OpenRouter API. Use when the user needs to transcribe audio files to text or generate speech/audio from text. Supports multiple audio formats for input and output, reads API key from environment, and writes generated audio to OpenClaw workspace tmp when available or an explicit output path. homepage: https://github.com/odubinkin/openrouter-audio/ metadata: { "openclaw": { "emoji": "π", "requires": { "env": ["OPENROUTER_API_KEY"], "bins": ["node"] }, "primaryEnv": "OPENROUTER_API_KEY", }, }
OpenRouter Audio
This skill provides a small CLI for speech-to-text and text-to-speech through OpenRouter.
Main Keys
name: Skill ID used by the runtime.description: When to use this skill and what it does.homepage: Project/source reference.metadata.openclaw.emoji: Visual marker for this skill.metadata.openclaw.requires.env: Required environment variables.metadata.openclaw.requires.bins: Required binaries in PATH (node).metadata.openclaw.primaryEnv: Primary variable to check first (OPENROUTER_API_KEY).Core Behavior
{baseDir}/openrouter-audio.shtranscribe, generateOPENROUTER_API_KEY onlygenerate output: {WORKSPACE_DIR}/tmp when an OpenClaw workspace exists, otherwise system tmp (or explicit path via --out)Priority Guidance
Defaults (Recommended)
Use defaults unless the user explicitly asks for overrides:
openrouter/autoopenai/gpt-audio-minialloymp3Models and Formats
Full utility description, including supported models and formats, is available in CLI help when needed:
{baseDir}/openrouter-audio.sh --help
Prompt Behavior
transcribe: speech-to-text transcript
- generate: direct TTS for the provided text
--prompt can change behavior. For example:Usage
# Full help (models, formats, options)
{baseDir}/openrouter-audio.sh --helpTranscribe from a local file
{baseDir}/openrouter-audio.sh transcribe recording.wavGenerate with defaults (recommended)
{baseDir}/openrouter-audio.sh generate "Hello world"Generate to an explicit output path
{baseDir}/openrouter-audio.sh generate "Welcome" --out ./artifacts/welcome.mp3
Output Behavior
transcribe prints transcript text to stdout.generate prints JSON with:paths (generated audio file path(s))
- transcript (when available)
- format (final output format)
π‘ Examples
# Full help (models, formats, options)
{baseDir}/openrouter-audio.sh --helpTranscribe from a local file
{baseDir}/openrouter-audio.sh transcribe recording.wavGenerate with defaults (recommended)
{baseDir}/openrouter-audio.sh generate "Hello world"Generate to an explicit output path
{baseDir}/openrouter-audio.sh generate "Welcome" --out ./artifacts/welcome.mp3