Skip to content

Conversation

@LordLuceus
Copy link
Collaborator

Summary

  • Add braille output functionality via UniversalSpeech's brailleDisplay() function
  • Braille is enabled by default (SpeechManager.EnableBraille = true)
  • All speech output is automatically sent to braille displays when enabled
  • Document braille support, custom text replacements, and other extensibility features in README

Details

The issue reporter suggested a "boolean flag when instantiating UniversalSpeech" but that's not how UniversalSpeech works. Instead, UniversalSpeech has a separate brailleDisplay() function that sends text to braille displays through the active screen reader.

This PR adds:

  • P/Invoke for brailleDisplay in UniversalSpeechWrapper
  • DisplayBraille(string text) public method
  • EnableBraille property on SpeechManager (default: true)
  • Updated Output() and RepeatLast() to send to braille when enabled

Test plan

  • Verify build succeeds for all target frameworks (net6.0, net472, net35)
  • Test with a braille display and NVDA/JAWS to confirm output appears
  • Test SpeechManager.EnableBraille = false disables braille output

Closes #1

🤖 Generated with Claude Code

Add braille output functionality that sends text to braille displays
through the screen reader's braille support. Braille is enabled by
default and can be toggled via SpeechManager.EnableBraille.

Changes:
- Add brailleDisplay P/Invoke to UniversalSpeechWrapper
- Add DisplayBraille() method for direct braille output
- Update SpeechManager.Output() and RepeatLast() to output to braille
- Document braille support, custom text replacements, and extensibility

Closes #1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@LordLuceus LordLuceus merged commit a9a150e into master Jan 3, 2026
2 checks passed
@LordLuceus LordLuceus deleted the feature/braille-support branch January 3, 2026 11:00
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.

Braille flag not set for universalSpeech

2 participants