global claude code voice mode

This commit is contained in:
David Chen 2025-08-28 18:20:16 -07:00
parent b2ce6e7598
commit af834a4619
8 changed files with 66 additions and 33 deletions

View file

@ -0,0 +1,23 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Toggle Claude Voice
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔊
# @raycast.description Toggle Claude Code voice on/off globally
voice_flag="$HOME/.claude/voice-enabled"
if [ -f "$voice_flag" ]; then
# Voice is currently on, turn it off
rm -f "$voice_flag"
pkill -f 'say' 2>/dev/null
echo "Claude Voice OFF"
else
# Voice is currently off, turn it on
touch "$voice_flag"
echo "Claude Voice ON"
fi

View file

@ -0,0 +1,15 @@
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Stop Voice (TTS)
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🔇
# @raycast.description Stop all text-to-speech playback
# Kill all running say processes
pkill -f 'say' 2>/dev/null
echo "All TTS stopped"