Oma Voice 标志

Oma Voice

组织热门
first-fluke
oma-voice

Generate speech or transcribe audio locally with Voicebox. Use for narration, voice assets, dictation, and meeting transcription.

概览

发布者first-fluke
代码仓库oh-my-agent
技能名称oma-voice
星标数
1.3K
复刻数
149
附带文件
5
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 first-fluke 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Oma Voice AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-voice
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git /tmp/oh-my-agent
mkdir -p .claude/skills
cp -r /tmp/oh-my-agent/skills/oma-voice .claude/skills/oma-voice
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Oma Voice,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Oma Voice。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Oma Voice 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Voice Skill - Local TTS and STT via Voicebox

Scheduling

Goal

Drive the Voicebox local app through its MCP server so any MCP-aware agent can speak (TTS) or listen (STT) without invoking cloud vendors. The skill standardizes intent routing, voice profile resolution, output layout, and guardrails while voicebox itself owns the engines, voice cloning UI, captures archive, and stories editor.

Intent signature

  • User asks to generate speech, narrate text, produce a voiceover, create an mp3 or wav from text.
  • User wants an audio file transcribed into text, meeting notes, or a transcript.
  • User asks for a voice notification when a long task completes or a workflow step is blocked.
  • Another skill needs local audio generation infrastructure.

When to use

  • Generating short notification audio for agent task completion or blockers.
  • Producing voiceover, narration, or audio assets (mp3 or wav) for apps and content.
  • Transcribing local audio files (mp3, wav, m4a, webm, flac) to Markdown.
  • Comparing voice profiles by re-running the same text against different profile ids.

When NOT to use

  • Cloud TTS or high-fidelity multilingual cloud voices -> out of scope; future multi-vendor extension.
  • Real-time microphone dictation loop in the terminal -> use Voicebox app's built-in hotkey dictation.
  • Voice cloning sample upload and profile creation -> done in the Voicebox desktop app UI.
  • Video synthesis, music, sound design -> out of scope.
  • Stories Editor multi-voice timeline composition -> use the Voicebox app UI.

Expected inputs

  • TTS: text (<= 5000 chars per call), optional profile id, optional engine, optional language, optional output path.
  • STT: audio file path (absolute or relative to $CWD), optional language hint.
  • Notification: short message (<= 240 chars), profile id resolved from config.

Expected outputs

  • TTS: audio file (wav — Voicebox's native TTS output format; mp3 optional via a local ffmpeg transcode) at .agents/results/voice/{timestamp}-{shortid}/output.{wav|mp3} plus manifest.json.
  • STT: transcript.md at .agents/results/voice/transcripts/{timestamp}-{shortid}/ plus manifest.json.
  • Notification: ephemeral playback through Voicebox; no disk write by default.

Dependencies

  • Voicebox desktop app installed and running locally.
  • Voicebox MCP registered (claude mcp add --transport http voicebox http://127.0.0.1:17493/mcp).
  • TTS only: at least one voice profile created in the Voicebox app UI.
  • TTS only: optionally pre-downloaded engine models for the selected profile.

Control-flow features

  • Branches by mode (notify, asset, transcribe), language, and profile availability.
  • Calls voicebox via MCP tools, with REST GET /health as the handshake probe.
  • Reads input audio files and writes generated audio plus manifests.
  • Caches discovered MCP tool names after the first successful tools/list.

Structural Flow

Entry

  1. Detect the requested mode: notification, asset TTS, or transcription.
  2. Verify Voicebox is reachable via MCP handshake or GET /health.
  3. On the first run only, call MCP tools/list and cache the resolved tool names.
  4. For notification or asset TTS, resolve the target voice profile id. For transcription, validate the audio input and continue without a profile.

Scenes

  1. PREPARE: Validate text length, audio duration, language, output path, and profile id.
  2. ACQUIRE: If a required signal is missing, run the clarification protocol once.
  3. ACT: Invoke the appropriate MCP tool (TTS or STT) with the resolved parameters.
  4. VERIFY: Confirm the response carries audio output or transcript content. Validate manifest fields.
  5. FINALIZE: Write manifest.json alongside the output. Report the path or transcript to the user.

Transitions

  • If voicebox is unreachable, surface the install or launch hint and exit. Do not attempt auto-relaunch.
  • If a TTS request has no usable profile, point the user at the Voicebox app UI to create a profile, then exit. A transcription request never needs a profile.
  • If a TTS request exceeds 5000 chars, ask whether to truncate or split. Do not auto-chunk in v1.
  • If an STT input exceeds 30 minutes, ask whether to proceed. Do not auto-split.
  • If the selected engine model is not loaded, ask the user before triggering a download.

Failure and recovery

FailureRecovery
Voicebox app not runningPrint install/launch hint, exit code 5
No voice profile for TTSPrint "create a profile in Voicebox" hint, exit code 3
Engine model missingAsk before triggering download
Output path outside $PWDUse an explicitly requested path; ask only if the destination is ambiguous or overwrites unrelated data
TTS over 5000 charsAsk the user to split or truncate
STT over 30 minutesConfirm only if the requested duration or resource cost is unresolved
MCP tool name driftRe-run tools/list and update the cache
SIGINTAbort the MCP call, write no partial output

Exit

  • Success: audio file or transcript exists with a complete manifest, and the path is reported.
  • Partial success: output exists but a guardrail warning is surfaced (length, disk, model fallback).
  • Failure: no output, the blocker (auth, profile, engine, network) is explicit.

Logical Operations

Actions

ActionSSL primitiveEvidence
Validate mode and inputsVALIDATEClarification protocol in execution-protocol.md
Resolve TTS voice profileSELECTvoicebox_list_profiles + config defaults
Health checkREADMCP handshake or GET /health
Generate speechCALL_TOOLMCP voicebox_speak
Transcribe audioCALL_TOOLMCP voicebox_transcribe
Write output and manifestWRITEAudio or transcript plus manifest.json
Inspect resultVALIDATEOutput presence, duration, manifest fields
Report resultNOTIFYFinal user-facing summary

Tools and instruments

  • Voicebox MCP server at http://127.0.0.1:17493/mcp.
  • REST surface for health and audio retrieval (GET /health, GET /audio/{generation_id}).
  • Resource references: voice matrix, prompt tips, execution protocol, checklist.

Canonical command path

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

MCP tool mapping (verified against Voicebox 0.5.0)

Use caseMCP toolREST backing
TTS generationvoicebox_speakPOST /speak
STT transcriptionvoicebox_transcribePOST /transcribe
Profile listingvoicebox_list_profilesGET /profiles
Captures listingvoicebox_list_capturesGET /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:

  • Required: text. Optional: profile, engine, language, personality (bool).
  • Audio plays on the user speakers and is saved to the Captures / History panel automatically. There is no save_to_disk toggle on the MCP tool itself; to persist a local copy, fetch GET /audio/{generation_id} (Voicebox TTS always stores wav).
  • Without a default profile set in Voicebox Settings, profile= is required.

Notes on voicebox_transcribe:

  • Accepts exactly one of audio_base64 or audio_path (loopback only). Optional language, model.

Resource scope

ScopeResource target
LOCAL_FSInput audio, generated audio, transcripts, manifests
PROCESSLocal Voicebox app subprocess (managed by the user)
NETWORKLoopback HTTP to 127.0.0.1:17493 only
MEMORYCached MCP tool names, resolved profile metadata
CREDENTIALSNone. Voicebox is local and key-free.

Preconditions

  • Voicebox app is running and the MCP handshake succeeds.
  • TTS only: at least one voice profile exists.
  • TTS only: the selected engine model is loaded or the user approves a download.
  • Output directory is inside $PWD unless explicitly allowed.

Effects and side effects

  • Creates audio files, transcripts, and manifests under .agents/results/voice/.
  • Triggers local Voicebox generation, which consumes CPU or GPU.
  • May trigger an engine model download when the user approves.
  • Does not call any cloud service. No external network traffic.

Guardrails

  1. Voicebox required: if the MCP handshake or GET /health fails, exit with a one-shot install or launch hint. Do not retry, do not auto-relaunch.
  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 first 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; warn at 2000. 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. Cancellation: SIGINT aborts the MCP call and 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. Notification mode is exempt because Voicebox Captures is its system of record and no disk output is written by default.
  9. Out of scope: voice cloning UI, captures archive, stories editor, microphone dictation loop, and cloud vendors are intentionally not exposed.
  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:

  • Text content provided?
  • Voice profile id or tone description provided?

TTS strongly recommended:

  • Language explicit or detectable from the text?
  • Output format (wav default; mp3 requires a local ffmpeg transcode)?

STT required:

  • Audio path provided and the file exists?
  • Duration within 30 minutes, or user approves splitting?

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

Invocation

Standalone
text
/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

  • Voice engine matrix: resources/voice-matrix.md
  • Prompt writing rules: resources/prompt-tips.md
  • Execution protocol: resources/execution-protocol.md
  • Pre-flight checklist: resources/checklist.md
  • Configuration: read the voice: section of .agents/oma-config.yaml first, then fall back to config/voice-config.yaml for any key it does not set. Both profiles ship as null and must be set per machine — write them to .agents/oma-config.yaml, since oma update overwrites the skill config.
  • Context loading: ../_shared/core/context-loading.md
  • Quality principles: ../_shared/core/quality-principles.md
  • Design reference: ../../../docs/plans/designs/012-oma-voice.md (source repo only; absent in global-mode installs)

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Oma Voice AI 技能有什么作用?

Generate speech or transcribe audio locally with Voicebox. Use for narration, voice assets, dictation, and meeting transcription.

为什么在 TypingMind 中使用 Oma Voice?

因为您只需安装一次,就能搭配任何模型使用。Oma Voice 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Oma Voice?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-voice。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Oma Voice?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Oma Voice 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Oma Voice 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Oma Voice AI 技能免费吗?

是的。first-fluke 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇