# Send Telegram Voice To Voice Macos to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "telegram-voice-to-voice-macos",
    "name": "Telegram Voice To Voice Macos",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/Fiberian1981/telegram-voice-to-voice-macos",
    "canonicalUrl": "https://clawhub.ai/Fiberian1981/telegram-voice-to-voice-macos",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/telegram-voice-to-voice-macos",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-voice-to-voice-macos",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/transcribe_telegram_ogg.sh",
      "scripts/tts_telegram_voice.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/telegram-voice-to-voice-macos"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/telegram-voice-to-voice-macos",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-voice-to-voice-macos",
    "agentUrl": "https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent.md"
  }
}
```
## Documentation

### Telegram voice-to-voice (macOS Apple Silicon only)

This is an OpenClaw skill.

### Requirements

macOS on Apple Silicon.
yap CLI available in PATH (Speech.framework transcription).

Project: https://github.com/finnvoor/yap (by finnvoor)


ffmpeg available in PATH.

### Compatibility note (important)

This skill is macOS-only (uses say + Speech.framework). The skill registry cannot enforce OS restrictions, so installing/running it on Linux/Windows will result in runtime failures.

### Persistent reply mode (voice vs text)

Store a small per-user preference file in the workspace:

State file: voice_state/telegram.json
Key: Telegram sender user id (string)
Values:

"voice" (default): reply with a Telegram voice note
"text": reply with a single text message

If the file does not exist or the sender id is missing: assume "voice".

### Toggle commands

If an inbound text message is exactly:

/audio off → set state to "text" and confirm with a short text reply.
/audio on → set state to "voice" and confirm with a short text reply.

### Getting the inbound audio (.ogg)

Telegram voice notes often show up as <media:audio> in message text.
OpenClaw saves the attachment to disk (typically .ogg) under:

~/.openclaw/media/inbound/

Recommended approach:

If the inbound message context includes an attachment path, use it.
Otherwise, take the most recent *.ogg from ~/.openclaw/media/inbound/.

### Transcription

Default locale: macOS system locale.

Optional env:

YAP_LOCALE — override the transcription locale (e.g. it-IT, en-US).

Preferred:

yap transcribe --locale "${YAP_LOCALE:-<system>}" <path.ogg>

If YAP_LOCALE is not set, the helper script will use the macOS system locale (from defaults read -g AppleLocale).

If transcription fails or is empty: ask the user to repeat or send text.

Helper script:

scripts/transcribe_telegram_ogg.sh [path.ogg]

### Mode: voice (default)

Voice default: SYSTEM (uses the current macOS system voice). You can override by passing a specific voice name to the helper script.

Generate the reply text.
Convert reply text to an OGG/Opus voice note using:

scripts/tts_telegram_voice.sh "<reply text>" [SYSTEM|VoiceName]

The script prints the generated .ogg path to stdout.

Send the .ogg back to Telegram as a voice note (not a generic audio file):

use the message tool with asVoice: true and media: <path.ogg>
optionally set replyTo to thread the response

Notes:

Use SYSTEM to rely on the current macOS system voice (recommended).

### Mode: text

Reply with a single text message:

Transcription: <...>
Reply: <...>
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Fiberian1981
- Version: 0.1.3
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/telegram-voice-to-voice-macos)
- [Send to Agent page](https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent)
- [JSON manifest](https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/telegram-voice-to-voice-macos/agent.md)
- [Download page](https://openagent3.xyz/downloads/telegram-voice-to-voice-macos)