mirror of
https://github.com/theniceboy/.config.git
synced 2026-04-09 02:05:19 +08:00
claude voice mode
This commit is contained in:
parent
f47f02166e
commit
587f956396
6 changed files with 80 additions and 1 deletions
11
claude/scripts/voice-off.sh
Executable file
11
claude/scripts/voice-off.sh
Executable 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
11
claude/scripts/voice-on.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue