微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🎙️

动口不动手,语音即邮件

voice-email · v1.0.2
办公 安全 B 级 作者 sundiver1 公开目录收录
1.1k 下载 0 安装 2.2k 收藏 13 浏览

简介

通过语音指令发送邮件,专为视障及行动不便用户设计,结合Deepgram语音识别与Gmail集成,实现无障碍邮件通信。

原始描述

Send emails via natural voice commands - designed for accessibility

通过你的 Agent 添加

安装目录:voice-email/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/voice-email/
Codex CLI~/.codex/skills/voice-email/
DeepSeek Harness~/.agents/skills/voice-email/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: voice-email version: 1.0.2 description: Send emails via natural voice commands - designed for accessibility security: requires: - network - file_access credentials: - deepgram_api_key - telegram_bot_token - gmail_oauth # via gogcli, stored in system keyring optional_credentials: - elevenlabs_api_key # optional, for voice responses permissions: - modify_config env_vars: - DEEPGRAM_API_KEY

Voice Email Skill

Send emails using natural voice commands. Perfect for accessibility use cases.

What It Does

When you receive a voice message, parse and send an email:

Input format:

new email to [recipient], subject [subject], body [body], send

Examples:

  • "new email to john@example.com, subject Hello, body How are you doing, send"
  • "send email to mom@gmail.com, subject Dinner, body See you at 7pm, send"

What This Skill CANNOT Do

  • ❌ Execute arbitrary code
  • ❌ Access files outside of logging/debugging
  • ❌ Modify system files
  • ❌ Access other accounts without explicit OAuth
  • ❌ Send emails to unknown recipients without user confirmation

Prerequisites

This skill requires:

  1. gogcli - Google CLI for Gmail (must be installed separately)
  2. Deepgram - For voice transcription (API key required)
  3. Telegram bot - For receiving voice messages (already configured in OpenClaw)
  4. ElevenLabs - Optional, for voice responses (not required)

Install gogcli (once, manually)

Option A - via npm (recommended):

npm install -g gogcli

Option B - via binary (verify source): Download from https://gogcli.ai and verify the binary

Then authenticate:

gog auth add your-email@gmail.com

Configure Deepgram (REQUIRED)

Add to openclaw.json:

{
  "tools": {
    "media": {
      "audio": {
        "enabled": true,
        "models": [{"provider": "deepgram", "model": "nova-3"}]
      }
    }
  },
  "env": {
    "DEEPGRAM_API_KEY": "your-deepgram-key"
  }
}

Configure ElevenLabs (OPTIONAL)

For voice responses, add to openclaw.json:

{
  "messages": {
    "tts": {
      "auto": "always",
      "provider": "elevenlabs",
      "elevenlabs": {
        "apiKey": "YOUR_ELEVENLABS_KEY",
        "voiceId": "YOUR_VOICE_ID"
      }
    }
  }
}

Without ElevenLabs, text responses still work.

Usage

Simply send a voice message with the command. The agent will:

  1. Transcribe it (via Deepgram)
  2. Parse the fields
  3. Send the email (via gogcli)
  4. Confirm via text (or voice if ElevenLabs configured)

Command Parser

The agent extracts:

  • to: Email address (after "to", "email to", "send to")
  • subject: Text after "subject"
  • body: Text after "body" (before "send")

Environment Variables

Variable Required Description
DEEPGRAM_API_KEY Yes For voice transcription
ELEVENLABS_API_KEY No For voice responses
ELEVENLABS_VOICE_ID No Voice to use

Security Notes

  • Network: Requires access to Telegram API, Deepgram API, Gmail API
  • Credentials:
    • gogcli stores OAuth tokens in system keyring
    • Deepgram key in openclaw.json (or environment)
    • ElevenLabs key in openclaw.json (optional)
  • Data: Voice recordings processed by Deepgram, emails sent via user's Gmail
  • Privilege: Modifies openclaw.json to enable media/audio
  • Does NOT: Execute arbitrary code, access unrelated files, or modify system

Best Practices for Production

  1. Use test accounts: Create dedicated Gmail account for testing
  2. Limit Gmail OAuth: Use app-specific passwords if needed
  3. Scope Deepgram: Use minimal quota for testing
  4. Review logs: Check /tmp/openclaw-*.log for unexpected activity
  5. Backup config: cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak

Uninstall

clawhub uninstall voice-email

Then remove API keys from openclaw.json if desired.

Validation / Testing

To verify the skill is working:

  1. Test Deepgram directly:
curl -X POST "https://api.deepgram.com/v1/listen" \
  -H "Authorization: Token $DEEPGRAM_API_KEY" \
  -H "Content-Type: audio/ogg" \
  --data-binary @sample.ogg
  1. Test gogcli:
gog auth status
gog gmail send --to "your-email@gmail.com" --subject "Test" --body "Working!"
  1. Send a voice message on Telegram: "new email to your-email@gmail.com, subject test, body hello, send"

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

accessibilityvoice-controlemailgmailtelegramspeech-to-textproductivity

同类 Skill