-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: Handle exceptions and null returns in polyfills and hooks
This update introduces proper error handling and null returns in the polyfill functions for SpeechRecognition, SpeechSynthesis, and SpeechSynthesisUtterance to prevent silent failures. Additionally, the useBlobUrl hook now logs an error if audio playback fails, improving the debugging process. The splitTextIntoSegments utility function has been updated to use String.fromCodePoint for better character encoding handling and to fix a regular expression for sentence splitting.
- Loading branch information
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters