Skip to content

Conversation

@marcusquinn
Copy link
Owner

Summary

Fixes Applied

Thread Source Severity Fix
CPU auto-detect falls back to cuda CodeRabbit Major Default to --server mode on CPU-only hosts
Docker guard missing in cmd_stop CodeRabbit Minor Add command -v docker guard
` exit` in docker functions Bonus
Hardcoded 192.168.1.100 in help CodeRabbit Minor Use <server-ip> placeholder
PyTorch version typo 2.10+ Gemini Medium Correct to 2.4+ (matches upstream)
Missing API key storage guidance CodeRabbit Minor Add gopass/credentials.sh reference

Already Fixed (replied with evidence)

Quality

  • ShellCheck: 0 violations
  • No README update needed (bugfix, no behavior change)

Closes t147.6

- Fix CPU-only auto-detect falling back to cuda (crashes on CPU hosts)
  Now defaults to --server mode with warning
- Add docker guard to cmd_stop (consistent with cmd_docker_start/cmd_status)
- Replace || exit with || return 1 in docker functions (proper set -e handling)
- Replace hardcoded 192.168.1.100 with <server-ip> placeholder in help
- Fix PyTorch version typo: 2.10+ -> 2.4+ (matches upstream torch>=2.4.0)
- Add API key storage guidance for OpenAI API usage

Already fixed in prior PRs (replied with evidence):
- nltk stderr suppression (PR #447)
- cmd_stop fixed sleep 2 -> polling loop (PR #447)
- transcribe command docs removed (commit fd2aa84)
- detect_gpu stderr no longer suppressed
- shift pattern refactored to explicit if/shift
- README Voice section already condensed

ShellCheck: zero violations.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 7, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 27 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/t147.6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @marcusquinn, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses and resolves various feedback points from a previous voice AI integration PR (#403). The changes focus on enhancing the robustness of the speech-to-speech helper script, improving error handling for Docker operations, and refining documentation for clarity and accuracy. The overall goal is to make the voice AI features more reliable and user-friendly by fixing identified issues and providing better guidance.

Highlights

  • CPU Auto-Detection Logic: The script now intelligently defaults to --server mode when a CPU-only host is detected, providing a warning to the user, rather than incorrectly assuming CUDA.
  • Robust Docker Command Handling: Error handling in Docker-related functions (cmd_docker_start, cmd_stop) has been improved by replacing || exit with || return 1, ensuring better script flow on command failure. Additionally, cmd_stop now includes a command -v docker guard to prevent errors if Docker is not installed.
  • Improved Help Message Clarity: The cmd_help output has been updated to use a generic <server-ip> placeholder instead of a hardcoded IP address, making the example more universally applicable.
  • PyTorch Version Correction: The documentation for PyTorch requirements has been corrected, specifying 2.4+ for both CUDA and macOS, resolving a previous typo.
  • API Key Storage Guidance: New documentation has been added to guide users on securely storing OPENAI_API_KEY using aidevops secret set or credentials.sh.
Changelog
  • .agents/scripts/speech-to-speech-helper.sh
    • Modified the cmd_start function to automatically switch to --server mode and issue a warning when a CPU-only host is detected, instead of defaulting to CUDA.
    • Replaced || exit with || return 1 in cmd_docker_start and cmd_stop to allow for more graceful error handling within the shell script.
    • Added a command -v docker &>/dev/null check within cmd_stop to ensure Docker commands are only attempted if Docker is installed.
    • Updated the cmd_help output to replace the hardcoded IP address 192.168.1.100 with a generic <server-ip> placeholder.
  • .agents/tools/voice/speech-to-speech.md
    • Added a new line providing guidance on how to store OPENAI_API_KEY securely using aidevops secret set or ~/.config/aidevops/credentials.sh.
    • Corrected the PyTorch version requirement for macOS from 2.10+ to 2.4+ to match the CUDA requirement.
Activity
  • All 12 review threads from PR feat: add voice AI integration with HuggingFace speech-to-speech pipeline #403 (voice AI integration) have been triaged.
  • Six valid issues identified in the reviews have been fixed.
  • Three issues were dismissed as they were already fixed in prior commits or PRs.
  • Three issues were dismissed as not applicable to the current context.
  • All 13 review threads have been replied to with their resolution status and supporting evidence.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 25 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Sat Feb 7 19:09:30 UTC 2026: Code review monitoring started
Sat Feb 7 19:09:30 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 25
Sat Feb 7 19:09:30 UTC 2026: Qlty - 0 issues found, auto-formatting applied
Sat Feb 7 19:09:32 UTC 2026: Codacy analysis completed with auto-fixes

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 25
  • VULNERABILITIES: 0

Generated on: Sat Feb 7 19:09:33 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 7, 2026

@marcusquinn marcusquinn merged commit 1b88d48 into main Feb 7, 2026
11 checks passed
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively addresses several identified issues from the voice AI review, enhancing the robustness, correctness, and clarity of the speech-to-speech-helper.sh script and its associated documentation. Key improvements include better error handling in shell functions by replacing exit with return 1, adding a Docker availability check, and updating documentation for API key storage and PyTorch version requirements. These changes contribute to a more reliable and user-friendly experience.


# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding command -v docker &>/dev/null before 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.

Suggested change
if command -v docker &>/dev/null && [[ -f "${S2S_DIR}/docker-compose.yml" ]]; then
if command -v docker &>/dev/null &>/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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Similar to the previous comment, changing || exit to || return 1 here ensures consistent and proper error handling within the function, preventing the entire script from exiting prematurely if the docker compose down command fails. This is crucial for maintaining script control flow.

Suggested change
(cd "$S2S_DIR" && docker compose down) || return 1
(cd "$S2S_DIR" && docker compose down) || return 1

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>"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Replacing the hardcoded IP address with a generic placeholder like <server-ip> in the help message improves the reusability and clarity of the example. This makes the documentation more adaptable and less confusing for users in different network environments.

Suggested change
echo " $0 client --host <server-ip>"
echo " $0 client --host <server-ip>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant