-
Notifications
You must be signed in to change notification settings - Fork 5
fix: triage PR #403 voice AI review feedback (t147.6) #458
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
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -212,7 +212,11 @@ cmd_start() { | |||||
| case "$gpu" in | ||||||
| mps) mode="local-mac" ;; | ||||||
| cuda) mode="cuda" ;; | ||||||
| *) mode="cuda" ;; | ||||||
| cpu) | ||||||
| mode="server" | ||||||
| print_warning "CPU-only host detected; defaulting to --server mode" | ||||||
| ;; | ||||||
| *) mode="server" ;; | ||||||
| esac | ||||||
| print_info "Auto-detected mode: $mode" | ||||||
| fi | ||||||
|
|
@@ -314,7 +318,7 @@ cmd_docker_start() { | |||||
| fi | ||||||
|
|
||||||
| print_info "Starting with Docker..." | ||||||
| (cd "$S2S_DIR" && docker compose up -d) || exit | ||||||
| (cd "$S2S_DIR" && docker compose up -d) || return 1 | ||||||
| print_success "Docker containers started" | ||||||
| print_info "Ports: ${DEFAULT_RECV_PORT} (recv), ${DEFAULT_SEND_PORT} (send)" | ||||||
| return 0 | ||||||
|
|
@@ -388,10 +392,10 @@ cmd_stop() { | |||||
| fi | ||||||
|
|
||||||
| # Stop Docker if running | ||||||
| if [[ -f "${S2S_DIR}/docker-compose.yml" ]]; then | ||||||
| if command -v docker &>/dev/null && [[ -f "${S2S_DIR}/docker-compose.yml" ]]; then | ||||||
| if docker compose -f "${S2S_DIR}/docker-compose.yml" ps --quiet 2>/dev/null | grep -q .; then | ||||||
| print_info "Stopping Docker containers..." | ||||||
| (cd "$S2S_DIR" && docker compose down) || exit | ||||||
| (cd "$S2S_DIR" && docker compose down) || return 1 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous comment, changing
Suggested change
|
||||||
| print_success "Docker containers stopped" | ||||||
| fi | ||||||
| fi | ||||||
|
|
@@ -543,7 +547,7 @@ cmd_help() { | |||||
| echo " $0 start --local-mac" | ||||||
| echo " $0 start --cuda --language auto --background" | ||||||
| echo " $0 start --server" | ||||||
| echo " $0 client --host 192.168.1.100" | ||||||
| echo " $0 client --host <server-ip>" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replacing the hardcoded IP address with a generic placeholder like
Suggested change
|
||||||
| echo " $0 start \$($0 config low-latency)" | ||||||
| echo " $0 stop" | ||||||
| echo "" | ||||||
|
|
||||||
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.
Adding
command -v docker &>/dev/nullbefore attempting Docker operations significantly improves the script's robustness. This prevents errors if Docker is not installed on the system, providing a more graceful failure or alternative path. This is a good practice for dependency checks.