Closed
Description
We would like to enhance the VoiceCapture
component by implementing a keyboard shortcut to activate voice recognition. Additionally, once the transcription is ready, the text should be copied to the clipboard using Ctrl + C
, and a notification should be provided to screen readers through ARIA live regions about the action performed, indicating whether the copy was successful or if any errors occurred. We also want to improve ARIA tags in the component to reflect its active status.
Acceptance Criteria
-
Keyboard Shortcut:
- Implement a keyboard shortcut (e.g.,
Ctrl + V
) that triggers the voice recognition feature when the user is focused on theVoiceCapture
component.
- Implement a keyboard shortcut (e.g.,
-
Clipboard Functionality:
- Upon successful transcription, the generated text should be automatically copied to the clipboard using
Ctrl + C
. - Ensure that the component handles any potential errors that might occur during the copy process.
- Upon successful transcription, the generated text should be automatically copied to the clipboard using
-
Screen Reader Notifications:
- Utilize ARIA live regions to notify screen readers when the transcription is successfully copied to the clipboard.
- Provide error messages if the copy action fails, ensuring that users relying on screen readers are aware of the action taken and any issues encountered.
-
Improved ARIA Tags:
- Add ARIA attributes to indicate the status of the
VoiceCapture
component when it is active and open. - Use attributes such as
aria-live
,aria-hidden
, andaria-modal
to improve the accessibility of the component.
- Add ARIA attributes to indicate the status of the