0
0
Source

Remote voice control for Mac from mobile devices using commands like /callmac or /voice. Broadcast announcements, play alarms, tell stories, wake up kids - all triggered from Telegram/WhatsApp messages. Uses edge-tts with mixed Chinese/English support, local playback, loops, and volume control. | 从移动设备通过 /callmac 或 /voice 命令远程控制 Mac 语音功能。广播公告、播放闹钟、讲故事、叫孩子起床 - 全部通过 Telegram/WhatsApp 消息触发。使用 edge-tts 支持中英文混合、本地播放、循环播放和音量控制。

Install

mkdir -p .claude/skills/callmac && curl -L -o skill.zip "https://mcp.directory/api/skills/download/5031" && unzip -o skill.zip -d .claude/skills/callmac && rm skill.zip

Installs to .claude/skills/callmac

About this skill

Callmac Skill

Remote voice control for your Mac from mobile devices. Broadcast announcements, play alarms, tell stories, wake up kids - all triggered from messaging apps like Telegram or WhatsApp. Uses edge-tts with mixed Chinese/English support.

从移动设备远程控制 Mac 语音功能。广播公告、播放闹钟、讲故事、叫孩子起床 - 全部通过 Telegram 或 WhatsApp 触发。使用 edge-tts 支持中英文混合。

Quick Start | 快速开始

快速开始使用语音技能,生成和播放中英文混合的 TTS 音频。

Basic Usage | 基本用法

# Generate and play a simple announcement
python3 scripts/generate_tts.py --text "Hello world" --play

# Generate mixed Chinese/English content
python3 scripts/generate_tts.py --text "Hello 你好" --play

# Save to file
python3 scripts/generate_tts.py --text "Your message" --output announcement.mp3

Voice Selection

Edge TTS provides high-quality neural voices:

  • English (US): en-US-JennyNeural (friendly), en-US-AriaNeural (confident)
  • Chinese (Mandarin): zh-CN-XiaoxiaoNeural (warm), zh-CN-XiaoyiNeural (lively)
  • Other languages: See VOICES.md for complete list

Features

1. Mixed Language Support

Automatically detects language segments and uses appropriate voices:

  • English segments → English neural voice
  • Chinese segments → Chinese neural voice
  • Other languages → Default or specified voice

2. Playback Control

  • Local playback on Mac using afplay
  • Loop playback support (1-∞ times)
  • Volume control (0-100%)
  • Background/foreground playback options

3. File Management

  • Save as MP3 files
  • Concatenate multiple audio segments
  • Batch processing support

4. Advanced Features

  • Custom voice selection per segment
  • Speech rate adjustment
  • Pitch modification
  • SSML support for advanced control

Workflows

Workflow 1: Simple Announcement Playback

  1. User provides text to speak
  2. System detects language(s)
  3. Generates appropriate TTS audio
  4. Plays locally on Mac

Workflow 2: Mixed Language Audio Creation

  1. User provides Chinese/English mixed text
  2. System splits by language segments
  3. Generates separate audio for each language
  4. Concatenates into single MP3 file
  5. Optionally plays or saves

Workflow 3: Scheduled/Repeated Announcements

  1. User provides text and playback schedule
  2. System creates cron job or loop
  3. Plays at specified intervals
  4. Can be stopped on demand

Scripts

scripts/generate_tts.py

Main script for TTS generation and playback.

Usage:

# Basic generation and playback
python3 generate_tts.py --text "Message" --play

# Save to file
python3 generate_tts.py --text "Message" --output file.mp3

# Mixed language with custom voices
python3 generate_tts.py --text "Hello 你好" --voice-en "en-US-AriaNeural" --voice-zh "zh-CN-XiaoyiNeural"

# Loop playback
python3 generate_tts.py --text "Message" --play --loops 5

# Volume control
python3 generate_tts.py --text "Message" --play --volume 80

# SSML support
python3 generate_tts.py --ssml "<speak>Hello <break time='500ms'/> world</speak>"

Parameters:

  • --text: Text to convert to speech
  • --ssml: SSML markup for advanced control
  • --output: Save to MP3 file
  • --play: Play immediately after generation
  • --voice: Default voice (overrides auto-detection)
  • --voice-en: English voice override
  • --voice-zh: Chinese voice override
  • --loops: Number of times to play (default: 1)
  • --volume: Playback volume 0-100 (default: system volume)
  • --rate: Speech rate adjustment (+/- %)
  • --pitch: Pitch adjustment (+/- Hz)

scripts/play_audio.py

Audio playback control utilities.

Usage:

# Play existing audio file
python3 play_audio.py --file audio.mp3

# Loop playback
python3 play_audio.py --file audio.mp3 --loops 3

# Volume control
python3 play_audio.py --file audio.mp3 --volume 75

# Stop all playback
python3 play_audio.py --stop

scripts/merge_audio.py

Merge multiple audio files.

Usage:

# Merge two files
python3 merge_audio.py --files part1.mp3 part2.mp3 --output combined.mp3

# Create playlist and merge
python3 merge_audio.py --playlist playlist.txt --output combined.mp3

References

VOICES.md

Complete list of available Edge TTS voices with language, gender, and style information.

INSTALLATION.md

Setup instructions for edge-tts and ffmpeg dependencies.

EXAMPLES.md

Example usage patterns and common scenarios.

Dependencies

  1. edge-tts: pip3 install edge-tts
  2. ffmpeg: brew install ffmpeg (for audio merging)
  3. macOS tools: afplay (built-in), osascript (volume control)

Common Patterns

Pattern 1: Welcome Message

python3 scripts/generate_tts.py --text "Welcome to the system. 系统欢迎您。" --play --voice-en "en-US-JennyNeural" --voice-zh "zh-CN-XiaoxiaoNeural"

Pattern 2: Scheduled Reminder

# Create audio file
python3 scripts/generate_tts.py --text "Time for your meeting. 会议时间到了。" --output reminder.mp3

# Schedule playback (using cron)
echo "*/30 * * * * afplay /path/to/reminder.mp3" | crontab -

Pattern 3: Multi-language Announcement

python3 scripts/generate_tts.py --text "Alert: System update in progress. 警报:系统更新进行中。" --play --loops 3 --volume 90

Troubleshooting

No Audio Output

  1. Check system volume: osascript -e "output volume of (get volume settings)"
  2. Check mute status: osascript -e "output muted of (get volume settings)"
  3. Test with simple audio: afplay /System/Library/Sounds/Ping.aiff

edge-tts Not Working

  1. Verify installation: python3 -m edge_tts --list-voices
  2. Check internet connection (edge-tts requires online access)
  3. Update package: pip3 install --upgrade edge-tts

Audio Quality Issues

  1. Use neural voices for best quality
  2. Adjust speech rate if too fast/slow
  3. Consider SSML for precise control

Notes

  • Edge TTS requires internet connection for voice synthesis
  • Local playback uses macOS built-in afplay command
  • Volume control uses osascript to adjust system volume
  • For offline use, consider alternative TTS solutions
  • Large texts may be split into multiple segments automatically

seedream-image-gen

openclaw

Generate images via Seedream API (doubao-seedream models). Synchronous generation.

2359

ffmpeg-cli

openclaw

Comprehensive video/audio processing with FFmpeg. Use for: (1) Video transcoding and format conversion, (2) Cutting and merging clips, (3) Audio extraction and manipulation, (4) Thumbnail and GIF generation, (5) Resolution scaling and quality adjustment, (6) Adding subtitles or watermarks, (7) Speed adjustment (slow/fast motion), (8) Color correction and filters.

6623

context-optimizer

openclaw

Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat.

3622

a-stock-analysis

openclaw

A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。

9121

himalaya

openclaw

CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).

7921

garmin-connect

openclaw

Syncs daily health and fitness data from Garmin Connect into markdown files. Provides sleep, activity, heart rate, stress, body battery, HRV, SpO2, and weight data.

7321

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318398

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.