Skip to content

Voxtral Realtime: font color option#17739

Merged
manuelcandales merged 1 commit intomainfrom
manuel/vr-color
Feb 26, 2026
Merged

Voxtral Realtime: font color option#17739
manuelcandales merged 1 commit intomainfrom
manuel/vr-color

Conversation

@manuelcandales
Copy link
Contributor

This pull request adds support for colored output in the voxtral_realtime example, allowing users to specify the color of the output text via a new command-line flag. The implementation replaces the previous hardcoded color logic with a more flexible approach and provides error handling for invalid color values.

New feature: Output text color customization

  • Added a --color command-line flag to main.cpp, allowing users to choose between green, red, or no color for output text.
  • Implemented logic to parse the --color flag, set the appropriate ANSI color code, and handle invalid values with an error message and exit.
  • Updated the output printing logic to use the selected color dynamically instead of a hardcoded value, and to reset the color after each token.

Copilot AI review requested due to automatic review settings February 26, 2026 18:12
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 26, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17739

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 88 Pending

As of commit 9e0e842 with merge base 5a9b280 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 26, 2026
@github-actions
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a command-line flag to customize the output text color in the voxtral_realtime example. The implementation allows users to choose between green, red, or no color for the transcribed text output.

Changes:

  • Added --color command-line flag that accepts "green", "red", or empty string (no color)
  • Replaced hardcoded use_color boolean with dynamic ansi_color pointer-based approach
  • Implemented input validation with clear error messages for invalid color values

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@manuelcandales manuelcandales merged commit 2ffe356 into main Feb 26, 2026
189 of 193 checks passed
@manuelcandales manuelcandales deleted the manuel/vr-color branch February 26, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants