-
Notifications
You must be signed in to change notification settings - Fork 2
Add zh-HK Cantonese support and update installation instructions #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
82bcc38
a96b072
736a54e
5bad524
abf513f
7610def
5b3919f
da62339
4f16b88
59d4203
11c887c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,11 +10,16 @@ INSTALL_DIR="$HOME/.local/share/claude-code-voice" | |
| if [ ! -f "scripts/server.swift" ]; then | ||
| echo "Downloading claude-code-voice..." | ||
| rm -rf "$INSTALL_DIR" | ||
| git clone --depth 1 https://github.com/eladcandroid/claude-code-voice.git "$INSTALL_DIR" 2>/dev/null | ||
| git clone --depth 1 https://github.com/dr-data/claude-code-voice.git "$INSTALL_DIR" 2>/dev/null | ||
| cd "$INSTALL_DIR" | ||
| fi | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | ||
|
|
||
| # Detect GitHub username from this repo's git remote so forked copies display correct URLs | ||
| _REMOTE_URL=$(git -C "$SCRIPT_DIR" remote get-url origin 2>/dev/null || echo "") | ||
| _GITHUB_USER=$(echo "$_REMOTE_URL" | sed -E 's|.*github\.com[:/]([^/]+)/.*|\1|') | ||
| _GITHUB_USER="${_GITHUB_USER:-dr-data}" | ||
|
Comment on lines
+19
to
+22
|
||
| SCRIPTS="$SCRIPT_DIR/scripts" | ||
| APP="$SCRIPTS/VoiceServer.app" | ||
|
|
||
|
|
@@ -116,5 +121,8 @@ echo "" | |
| echo "=== Done ===" | ||
| echo "Restart Claude Code, enable /voice, and speak." | ||
| echo "Switch language with /config." | ||
| echo "Supported /config language codes:" | ||
| echo " en, es, fr, de, ja, ko, pt, it, ru, hi, id, pl, tr, nl, uk, el, cs, da, sv, no, he, ar, zh, zh-hk" | ||
| echo " plus any language supported by Apple SFSpeechRecognizer" | ||
|
Comment on lines
+124
to
+126
|
||
| echo "" | ||
| echo "Uninstall: curl -fsSL https://raw.githubusercontent.com/eladcandroid/claude-code-voice/main/uninstall.sh | bash" | ||
| echo "Uninstall: curl -fsSL https://raw.githubusercontent.com/$_GITHUB_USER/claude-code-voice/main/uninstall.sh | bash" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,12 @@ set -euo pipefail | |
| echo "=== Uninstalling Claude Code Voice ===" | ||
| echo "" | ||
|
|
||
| # Detect GitHub username from the installed repo before we remove it | ||
| _INSTALL_DIR="$HOME/.local/share/claude-code-voice" | ||
| _REMOTE_URL=$(git -C "$_INSTALL_DIR" remote get-url origin 2>/dev/null || echo "") | ||
| _GITHUB_USER=$(echo "$_REMOTE_URL" | sed -E 's|.*github\.com[:/]([^/]+)/.*|\1|') | ||
| _GITHUB_USER="${_GITHUB_USER:-dr-data}" | ||
|
Comment on lines
+7
to
+11
|
||
|
|
||
| # 1. Stop and remove launch agents (current + legacy names) | ||
| for name in com.claude-code-voice com.claude-code-voice.server com.hebrew-voice.server; do | ||
| PLIST="$HOME/Library/LaunchAgents/$name.plist" | ||
|
|
@@ -52,3 +58,4 @@ done | |
| echo "" | ||
| echo "=== Uninstall complete ===" | ||
| echo "Restart Claude Code for changes to take effect." | ||
| echo "Reinstall: curl -fsSL https://raw.githubusercontent.com/$_GITHUB_USER/claude-code-voice/main/setup.sh | bash" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLAUDE.mdstill shows install/uninstall commands usingeladcandroidearlier in the file, while this PR updates other docs/scripts todr-dataand/or dynamic URL display. This inconsistency will confuse users following CLAUDE.md; align the commands with the new default username (or update the doc to instruct users to use their fork).