You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(accessible_output): add user feedback for various actions (#337)
* chore(deps): add accessible_output3
* feat(accessible_output): add initial user feedback for various actions
* fix(pyproject): remove win32com and winerror from the exclude list
* feat(accessible_output): add option for Accessible Output in conversation settings
- Introduced a new configuration option `use_accessible_output` in the `ConversationSettings` class to enable or disable accessible output.
- Implemented conditional checks in `conversation_tab.py` to use accessible output based on the new configuration setting.
- Added a checkbox in the `PreferencesDialog` to allow users to enable or disable accessible output for spoken and braille feedback.
* feat(accessible_output): Add feedback for response
- Introduced `clear_for_speak` function to sanitize text by removing Markdown elements such as bold, italics, links, images, headers, blockquotes, and horizontal rules for improved accessible output.
- Updated `accessible_output` initialization for clarity.
- Enhanced `_flush_stream_buffer` and `_post_completion_without_stream` methods in `ConversationTab` to handle accessible text output using the new `clear_for_speak` function.
- Modified `_handle_completion_with_stream` for better buffer handling with regular expression to match end of sentences.
* Update basilisk/accessible_output.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* refactor(accessible_output): replace init_accessible_output with cached get_accessible_output function
* feat(accessible_output): speak on transcript reception
* feat(conversation_tab): add 'Read Current Message' functionality
* refactor(accessible_output): encapsulate accessible output handling and improve logging
- Refactored `accessible_output` handling in `ConversationTab` by centralizing logic into a `_handle_accessible_output` method.
- Enhanced initialization logging in `accessible_output.py` by adding a logger.
- Removed redundant focus checks before handling accessible output.
- Improved accessibility support by adding optional Braille output capability.
- Simplified conditions for message focusing based on accessibility settings.
* feat(accessible_output): add toggle for 'speak stream'
- Introduced `_speak_stream` attribute to control whether stream output is spoken.
- Added `on_toggle_speak_stream` method to toggle the speak stream state.
- Assigned Shift+Space as the keyboard shortcut to toggle speak stream.
- Included "Speak stream" as an option in the context menu, reflecting the current state.
- Implemented error handling for braille and speech output to prevent application crash.
- Adjusted focus handling when processing message streams.
* fix(accessible_output): remove extraneous periods in accessible output messages
Removed unnecessary periods from the accessible output messages for better consistency. Added braille output option to the "Message copied to clipboard" message.
* fix: include package in zip
---------
Co-authored-by: clementb49 <clement.boussiron@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
0 commit comments