claude voice mode

This commit is contained in:
David Chen 2025-08-28 12:31:51 -07:00
parent f47f02166e
commit 587f956396
6 changed files with 80 additions and 1 deletions

11
claude/scripts/voice-off.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
current_dir=$(pwd)
voice_db="$HOME/.claude/voice-db.json"
# Create voice database if it doesn't exist
if [ ! -f "$voice_db" ]; then
echo "{}" > "$voice_db"
fi
jq --arg dir "$current_dir" '.[$dir] = false' "$voice_db" > /tmp/voice-db-temp.json && mv /tmp/voice-db-temp.json "$voice_db"
echo "Voice disabled for $current_dir"

11
claude/scripts/voice-on.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
current_dir=$(pwd)
voice_db="$HOME/.claude/voice-db.json"
# Create voice database if it doesn't exist
if [ ! -f "$voice_db" ]; then
echo "{}" > "$voice_db"
fi
jq --arg dir "$current_dir" '.[$dir] = true' "$voice_db" > /tmp/voice-db-temp.json && mv /tmp/voice-db-temp.json "$voice_db"
echo "Voice enabled for $current_dir"