Oma voice

From first-fluke/oh-my-agent · View interactive version

Oma voice is an AI agent skill from the GitHub repository first-fluke/oh-my-agent. Generate or transcribe speech with Voicebox or VoiceStudio, or process existing audio locally. Use for narration, transcripts, timed speech, and loudness conversion; video editing uses oma-video.

How to use this skill

Skill file

Voice Skill - Speech and Local Audio Processing

Scheduling

Goal

Generate and transcribe speech through a local speech backend (the Voicebox app, or VoiceStudio per voice.backend), and process existing audio with local media tools. The backend owns synthesis engines and profiles; FFmpeg owns file conversion, duration adjustment, and loudness processing.

Intent signature

When to use

When NOT to use

Expected inputs

Expected outputs

Dependencies

Structural Flow

Transitions

Failure and recovery

| Failure | Recovery |

|---------|----------|

| No selected backend reachable | Give the Voicebox install/launch hint (and VoiceStudio for auto), then stop and report blocked |

| No voice profile for TTS | Give the "create a profile in Voicebox" hint, then stop and report blocked |

| Engine model missing | Ask before triggering download |

| Output path outside $PWD | Use an explicitly requested path; ask only if the destination is ambiguous or overwrites unrelated data |

| TTS over 5000 chars | Ask the user to split or truncate |

| STT over 30 minutes | Confirm only if the requested duration or resource cost is unresolved |

| MCP tool name drift | Re-run tools/list and update the cache |

| Call interrupted | Write no partial output; report the request as not completed |

| Local media executable missing | Report the missing tool for the requested operation; do not start Voicebox or replace audio with a placeholder |

| Speech cannot fit naturally | Retain the raw audio; adjust generation pacing when synthesis is available and authorized, or report the unresolved timing constraint instead of clipping words |

Exit

Logical Operations

Canonical command path

  1. Detect the requested mode: notification, asset TTS, transcription, or existing-audio processing. Dispatch existing-audio work to resources/audio-processing.md directly, before any Voicebox health, profile, or model lookup. The steps below are for generation/transcription only; timed TTS follows the processing reference after fetching the raw WAV.
  2. Resolve voice.backend (auto tries Voicebox, then VoiceStudio). For VoiceStudio, follow resources/voicestudio.md from here; the steps below describe Voicebox. When auto resolves the backend, or an engine/profile is chosen by use case, record it with subject voice.route-selection per ../_shared/runtime/route-selection.md (backend, engine/profile, and the health or language fact that decided it).
  3. If a required signal is missing, run the clarification protocol once. For transcription, validate the audio input and continue without a profile.
  4. Run the Voicebox call sequence:

```text

# 1. MCP handshake or REST health

GET http://127.0.0.1:17493/health -> 200 OK

# 2. Discover tool names on first run

MCP tools/list -> cache real names

# 3. TTS only: resolve profile

MCP voicebox_list_profiles -> pick profile by name or config default

# 4. Generate or transcribe (STT skips profile lookup and model-status check)

MCP voicebox_speak { text, profile, language?, engine?, personality? }

MCP voicebox_transcribe { audio_path | audio_base64, language?, model? }

# 5. Fetch the generated audio (MCP has no save-to-disk; TTS output is wav)

GET http://127.0.0.1:17493/audio/{generation_id} -> wav bytes

# 6. Persist output + manifest

.agents/results/voice/<timestamp>-<shortid>/output.wav + manifest.json

.agents/results/voice/transcripts/<timestamp>-<shortid>/transcript.md + manifest.json

```

  1. Confirm the response carries audio output or transcript content, check output presence and duration, and validate the manifest fields (Guardrail 8).
  2. Report the output path or the transcript to the user.

MCP tool mapping (verified against Voicebox 0.5.0)

| Use case | MCP tool | REST backing |

|---|---|---|

| TTS generation | voicebox_speak | POST /speak |

| STT transcription | voicebox_transcribe | POST /transcribe |

| Profile listing | voicebox_list_profiles | GET /profiles |

| Captures listing | voicebox_list_captures | GET /history (captures view) |

Tools not exposed via MCP (REST only): model status (GET /models/status), audio file serving (GET /audio/{generation_id}), per-version audio (GET /audio/version/{version_id}). The skill calls those over loopback HTTP when needed.

Notes on voicebox_speak:

Notes on voicebox_transcribe:

Resource scope and effects

Guardrails

  1. Voicebox modes: generation/transcription requires the MCP handshake or GET /health. On failure, stop with a one-shot install or launch hint; do not retry or auto-relaunch. Local processing does not require Voicebox.
  2. Profile required for TTS only: resolve a profile and check the TTS engine only for notification or asset mode. Transcription proceeds with a valid audio input and optional STT model even when no profile exists.
  3. Tool-name discovery: on the first Voicebox invocation, call MCP tools/list and cache the resolved names. Reuse the cache for subsequent calls in the same session.
  4. Length limits: TTS calls cap at 5000 chars per call. STT inputs cap at 30 minutes. v1 does not auto-chunk or auto-split.
  5. Auto-invocation transparency: notifications fire automatically only when the active task exceeds auto_notify_after_sec (default 60s). This threshold is agent-enforced guidance — no hook measures task duration — so apply it by judgment when a long task completes or blocks. Always announce intent in one short line before generating audio.
  6. Path safety: an explicitly requested output path authorizes writing there. Resolve ambiguity or unrelated-data replacement before the dependent write; preserve required CLI path flags.
  7. Interruption: an interrupted call writes no partial output.
  8. Manifest required for persisted output: asset TTS and transcription modes write manifest.json with at minimum: skill, mode, voicebox_generation_id, text (or transcript_preview), profile, engine, language, format (TTS only), created_at. Processing records the source, operations, and measured output properties as specified in resources/audio-processing.md; it never invents Voicebox provenance. Notification mode is exempt because Voicebox Captures is its system of record and no disk output is written by default.
  9. Out of scope: the Voicebox cloning UI, captures archive, stories editor, microphone dictation loop, and cloud vendors are intentionally not exposed. VoiceStudio cloning and voice design run only on an explicit request with the voice owner's permission (resources/voicestudio.md).
  10. No cost guard: Voicebox is free. The cost guardrail from oma-image does not apply.

Clarification protocol

Before invoking a TTS or STT call, the agent checks the following. If any required signal is missing, clarify with the user first.

TTS (asset mode) required:

TTS strongly recommended:

STT required:

Notification mode skips clarification. It uses notification_profile from config and language is auto-detected from the message.

Invocation

Standalone
/oma-voice "build succeeded, 4 minor warnings"
/oma-voice transcribe ~/Downloads/standup.m4a
/oma-voice --profile prof_warm_korean "다음 단계 진행 준비됐어요"
Shared infrastructure (other skills)

Other skills can request audio output by calling the same MCP tools directly, or by invoking /oma-voice with their text. There is no separate CLI; the skill is MCP-native.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.