Skip to main content
Agent skill

Audio To Ogg

Converts a single audio file to OGG Vorbis using FFmpeg for Godot-ready compressed assets. Use when the user wants to convert audio to OGG, transcode WAV/MP3/FLAC/AAC to OGG, export a Godot-ready OGG asset, or mentions Vorbis, libvorbis, or Godot audio import.

Get started

Get the complete skill folder, including its scripts and reference files.

When to use this skill

Use Audio To Ogg when an AI agent needs a reusable SKILL.md workflow for this job: Converts a single audio file to OGG Vorbis using FFmpeg for Godot-ready compressed assets. Use when the user wants to convert audio to OGG, transcode WAV/MP3/FLAC/AAC to OGG, export a Godot-ready OGG asset, or mentions Vorbis, libvorbis, or Godot audio import.

When not to use it

Skip Audio To Ogg when the task is outside the coding category, or when a more specific skill in this directory already covers the same workflow with clearer triggers.

How to install

Where will you use it?

Install scope
Claude Code folder setup
mkdir -p ~/.claude/skills/audio-to-ogg
# Save SKILL.md to ~/.claude/skills/audio-to-ogg/SKILL.md
  1. Claude Code personal install: place the skill and its bundled files at ~/.claude/skills/audio-to-ogg/SKILL.md. For a shared project, commit the folder at .claude/skills/audio-to-ogg/ instead.
  2. Current Claude Code detects SKILL.md changes in watched directories during the session. If you just created a top-level skills directory, run /reload-skills. Check that the skill is listed before testing its trigger.
  3. For Claude chat or Cowork in the Desktop app, manage uploaded skills in Customize > Skills; copying files into a local Claude Code folder is not a Desktop install. Other agents may use different install locations.

Full install guide for Claude, Cursor, and Codex →

Try a starter prompt

After installing the skill, paste this starter prompt into your agent to verify it triggers on a small task.

Starter prompt
Use the Audio To Ogg skill for this task: Use Audio To Ogg when this documented workflow matches the task. Confirm any required inputs or files before making changes.

What supports this recommendation?

70/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
77/100
Practical detail
68/100
Source evidence
61/100
Source signals
70/100
Model compatibility evidence
  • claudeuntested

    No model-specific signal or recorded compatibility test was found.

  • chatgptuntested

    No model-specific signal or recorded compatibility test was found.

  • geminiuntested

    No model-specific signal or recorded compatibility test was found.

  • copilotuntested

    No model-specific signal or recorded compatibility test was found.

  • llamauntested

    No model-specific signal or recorded compatibility test was found.

  • perplexityuntested

    No model-specific signal or recorded compatibility test was found.

  • mistraluntested

    No model-specific signal or recorded compatibility test was found.

  • grokuntested

    No model-specific signal or recorded compatibility test was found.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

What this skill does

# Audio to OGG

Convert a supported audio file to **OGG Vorbis** via FFmpeg. **Defaults preserve source sample rate** and encode at **Vorbis quality 10** (maximum) for minimal generation loss.

## Rules

When this skill applies, read and follow [skill-dependency-manager](../skill-dependency-manager.md) — run scripts as documented, install missing tools into `.dependency/`.

## Quick Start

Default output: `<audio-dir>/audio-to-ogg/<basename>.ogg`

```bash .dependency/python/python .ai/audio-to-ogg/convert.py --audio path/to/audio.wav ```

Example: `audio/sfx/tank/tank_move.wav` → `audio/sfx/tank/audio-to-ogg/tank_move.ogg`

## Format Defaults

| Setting | Default | Notes | |---------|---------|-------| | Codec | OGG Vorbis (`libvorbis`) | Godot-native compressed format | | Sample rate | Preserve source | Always keeps source rate; no resampling | | Quality | `10` (`-q 10`) | Maximum Vorbis quality (~500 kbps VBR); use lower `-q` to shrink files | | Channels | Preserve source | Use `--mono` or `--stereo` to force | | Existing Vorbis OGG | Stream copy | Bit-perfect when no overrides |

## Quality Guide

| `-q` | Approx. bitrate | Typical use | |------|-----------------|-------------| | 10 | ~500 kbps | **Default** — highest fidelity | | 7–8 | ~224–256 kbps | Smaller music/voice exports | | 5–6 | ~160–192 kbps | Gameplay SFX, BGM | | 3–4 | ~96–128 kbps | Short UI clicks, ambient loops |

## Common Flags

`--audio` · `-o` / `--output` · `-q` / `--quality` · `--mono` · `--stereo`

Lower quality for UI sounds:

```bash .dependency/python/python .ai/audio-to-ogg/convert.py --audio path/to/click.wav -q 4 ```

Custom output path:

```bash .dependency/python/python .ai/audio-to-ogg/convert.py --audio path/to/audio.wav --output path/to/out.ogg ```

**Never overwrite source files.** The script writes only under `audio-to-ogg/` (or `--output`). Input must be a single audio file (`--audio`), not a directory. Supported inputs: `.mp3`, `.ogg`, `.flac`, `.aac`, `.m4a`, `.wma`, `.wav`.

## Agent Notes

1. Use the bundled script, not hand-written `ffmpeg -i …` commands. 2. **Sample rate is always preserved** — use the `audio-sample-rate-standardize` skill if resampling is needed. 3. **Already Vorbis OGG?** Stream-copied by default (no generation loss). 4. Missing Python/FFmpeg → populate `.dependency/` per skill-dependency-manager, retry same command. 5. **Do not copy, move, or replace the source with converted output** — tell the user where output files are; they swap assets manually when ready. 6. FFmpeg codec and quality details: [reference.md](reference.md)

## Tests

From repo root:

```bash .dependency/python/python .ai/audio-to-ogg/test_convert.py ```

Manual CLI examples: [cli/audio-to-ogg.md](../../../cli/audio-to-ogg.md)

Intended uses

  • Use Audio To Ogg when this documented workflow matches the task.

Implementation notes

  • Review the source instructions and adapt inputs before running the workflow.

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.