Show HN: 답장을 소리내어 읽는 Claude Code용 /speak 슬래시 명령
hackernews
|
|
📦 오픈소스
#claude
#하드웨어/반도체
#ai 에이전트
#오픈소스
#초고속통신
#프롬프트 허브
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
Claude Code의 답변을 소리 내어 읽어주는 macOS 전용 '/speak' 슬래시 명령이 공개되었습니다. 별도의 TTS API 키 없이 edge-tts를 활용하며, 수동 설치나 Claude Code에 설치 요청을 통해 간편하게 적용할 수 있습니다. 사용자는 최근 대화 기록을 바탕으로 언어를 자동 파악하고, 기본 음성을 변경하거나 '/stop-speak'로 재생을 중단할 수 있습니다.
본문
A /speak slash command for Claude Code that reads the last assistant reply aloud. No TTS API key required. macOS only. Claude Code replies can be walls of text. Sometimes I'd rather close my eyes and listen. The simplest way is to hand this repo to Claude Code and ask it to install. Paste this into a Claude Code session: Please install https://github.com/Bin-Huang/claude-code-speak by cloning it to a temp dir, then copying commands/speak.md andcommands/stop-speak.md to~/.claude/commands/ and thetts/ directory to~/.claude/tts/ . Thenchmod +x ~/.claude/tts/speak-last.sh . Also check withcommand -v edge-tts whether the dependency is installed, and give me the install command if it's missing. Finally, pick a fitting default voice and update theVOICE= line near the top of~/.claude/tts/speak-last.sh . To decide the language, look at my 3 most recently modified transcripts under~/.claude/projects/*/*.jsonl and check what language I typed in theuser messages — don't rely on the language of this instruction. Runedge-tts --list-voices to see options. Or install manually: git clone https://github.com/Bin-Huang/claude-code-speak.git cd claude-code-speak mkdir -p ~/.claude/commands ~/.claude/tts cp commands/speak.md commands/stop-speak.md ~/.claude/commands/ cp tts/speak-last.sh tts/extract-last.py ~/.claude/tts/ chmod +x ~/.claude/tts/speak-last.sh # one small dependency; nothing else to configure pipx install edge-tts # or: pip install --user edge-tts In any Claude Code session, type: /speak Claude replies with 🔊 and you hear the previous message played back. To stop playback mid-way: /stop-speak To change the voice, edit the VOICE= line at the top of ~/.claude/tts/speak-last.sh . Run edge-tts --list-voices to see the full list. /speak runs in the background and suppresses output, so if you hear nothing you won't see why. Run the script directly to see the error: ~/.claude/tts/speak-last.sh Common causes: edge-tts not installed, or no transcript found for the current working directory. rm ~/.claude/commands/speak.md ~/.claude/commands/stop-speak.md rm -r ~/.claude/tts MIT — see LICENSE.
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유