Audio Cog logo

Audio Cog

OrganizationPopular
TokenRhythm
audio-cog

OpenSquilla-compatible audio generation adapter for webpage audio requests. Prefer OpenRouter config/API key in OpenSquilla; preserve the upstream CellCog workflow only as optional ClawHub provenance.

Overview

PublisherTokenRhythm
Repositoryopensquilla
Skill nameaudio-cog
Stars
7K
Forks
566
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by TokenRhythm on GitHub. Read the source before you install it.

Installation

Install the Audio Cog AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TokenRhythm/opensquilla.git /tmp/opensquilla
mkdir -p .claude/skills
cp -r /tmp/opensquilla/src/opensquilla/skills/bundled/audio-cog .claude/skills/audio-cog
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Audio Cog in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Audio Cog on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Audio Cog is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Audio Cog - AI Audio Generation Powered by CellCog

Create professional audio with AI — voiceovers, music, sound effects, and personalized avatar voices.

Meta-Skill Entrypoint

Meta-skills should run this skill as skill_exec when they need OpenRouter audio. The entrypoint is a deterministic Python adapter. During MetaSkill execution it receives a short-lived provider connection from ordinary Provider Settings in the child process only; the credential and endpoint never enter with, argv, the plan, or persisted run data. It calls the configured OpenRouter audio model, writes a browser-playable WAV file under the supplied output directory, and prints either AUDIO_READY: or a single failure label. Do not spawn an LLM sub-agent just to generate audio.

Prefer JSON payload mode when the caller already has a narration script:

json
{"script": "exact spoken narration text"}

In payload mode the adapter asks the audio model to speak exactly that transcript and not add acknowledgements, titles, or setup text.

OpenSquilla Compatibility Contract

When invoked from OpenSquilla, this skill is an adapter around the caller's configured provider. Do not require CELLCOG_API_KEY, do not assume the cellcog package is installed, and do not invent provider credentials.

For AwesomeWebpageMetaSkill:

  • Use the code-owned OpenRouter capability candidate and the volatile provider lease resolved from ordinary Provider Settings after explicit approval.
  • Use only config.awesome_webpage.openrouter.models.audio_generation for audio model selection.
  • Save generated or processed files only under config.awesome_webpage.output_dir/project/assets/audio.
  • If the OpenRouter key, audio model, or output directory is missing, return a concise AUDIO_CONFIG_NEEDED report listing the missing config keys.
  • If the configured OpenRouter model cannot return a browser-playable audio file, return AUDIO_MODEL_UNSUPPORTED with the narration/script, desired duration, style, and target filename so the webpage can expose a clean replacement slot instead of failing the whole project.

On success: AUDIO_READY manifest line (required)

After every successful save, end your reply with one single-line JSON record per file so AwesomeWebpageMetaSkill can collect and bind the assets:

AUDIO_READY: {"local_path": "project/assets/audio/<slug>.wav", "mime": "audio/wav", "duration_s": <int_or_null>, "voice": "<voice>", "script_preview": "<first 80 chars>"}
  • One AUDIO_READY: line per audio file. No trailing prose on that line.
  • local_path MUST be the relative path project/assets/audio/.... Do NOT emit an absolute path here.
  • On failure, emit one of AUDIO_CONFIG_NEEDED, AUDIO_MODEL_UNSUPPORTED, or AUDIO_GENERATION_FAILED as a single-line label with the replacement-slot path so the page can render a placeholder.

OpenRouter Audio API Contract (hard rule for openai/gpt-audio*)

The default CellCog code-path is wrong for OpenSquilla and will fail. OpenRouter routes openai/gpt-audio / openai/gpt-audio-mini through OpenAI's audio-output mode, which has a strict request shape:

  • POST {base_url}/chat/completions with body:
    {
      "model": "<audio_generation>",
      "stream": true,
      "modalities": ["text", "audio"],
      "audio": {"voice": "alloy", "format": "pcm16"},
      "messages": [...]
    }
  • stream: true is REQUIRED. Non-streaming requests are rejected with HTTP 400 "Audio output requires stream: true".
  • audio.format MUST be pcm16 when streaming. mp3, opus, flac, wav are all rejected as "unsupported_value" — there is no alternative combo. Sending format=mp3 (any stream setting) burns ~190 s of per-attempt timeout for nothing; do not try it.
  • Read the SSE response, base64-decode each delta.audio.data chunk, concatenate the raw 24kHz mono signed-16-bit-little-endian PCM stream, then save it as a browser-playable WAV file.
  • Final on-disk asset is .wav. Set MIME to audio/wav in the manifest.
  • If the required MetaSkill provider lease is missing or invalid, emit AUDIO_CONFIG_NEEDED and exit 78 before any provider submission. Direct standalone CLI use may still read OPENROUTER_API_KEY; never fall back to CELLCOG_API_KEY or another provider.
  • Provider/model failures after submission remain an exit-0 degradation with a structured replacement slot. They are never automatically replayed.

Upstream CellCog instructions are intentionally omitted from the executable prompt body. OpenSquilla meta-skills use the entrypoint above; provenance is kept in frontmatter for registry/audit purposes.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Audio Cog AI skill do?

OpenSquilla-compatible audio generation adapter for webpage audio requests. Prefer OpenRouter config/API key in OpenSquilla; preserve the upstream CellCog workflow only as optional ClawHub provenance.

Why use Audio Cog on TypingMind?

Because you install it once and use it with any model. Audio Cog is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Audio Cog in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TokenRhythm/opensquilla/tree/main/src/opensquilla/skills/bundled/audio-cog. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Audio Cog?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Audio Cog?

As many as you like. As long as a model supports skills, you can use Audio Cog with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Audio Cog AI skill free?

Yes. It is published on GitHub by TokenRhythm under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇