|
| 1 | +# @syntropy-labs/react-web-speech |
| 2 | + |
| 3 | +## 0.1.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- f810e17: ## 🎉 Initial Release (v0.1.0) |
| 8 | + |
| 9 | + React hooks for the Web Speech API with first-class DX. |
| 10 | + |
| 11 | + ### Features |
| 12 | + - **`useSpeechInput`** — Primary hook for speech-to-text |
| 13 | + - Permission state management (`prompt`, `granted`, `denied`) |
| 14 | + - Auto-silence detection with configurable timeout |
| 15 | + - Auto-restart on network errors |
| 16 | + - Real-time interim results |
| 17 | + - Full TypeScript support |
| 18 | + - **`useSpeechInputWithCursor`** — Extended hook with cursor-aware insertion |
| 19 | + - Insert transcribed text at cursor position |
| 20 | + - Works with controlled inputs and textareas |
| 21 | + - `appendSpace` option for natural text flow |
| 22 | + - **Cursor Utilities** — Low-level cursor management |
| 23 | + - `insertTextAtCursor` — Insert text at cursor in controlled inputs |
| 24 | + - `getCursorPosition` / `setCursorPosition` — Cursor position helpers |
| 25 | + - `supportsSelection` — Check input type compatibility |
| 26 | + - **Browser Detection** — SSR-safe browser capability detection |
| 27 | + - `detectBrowserCapabilities` — Check Speech API support |
| 28 | + - `getBrowserCompatibilityWarning` — Browser-specific warnings |
| 29 | + - **Permission Helpers** — Mic permission management |
| 30 | + - `getMicPermissionState` — Query current permission |
| 31 | + - `requestMicPermission` — Trigger permission prompt |
| 32 | + - `subscribeToPermissionChanges` — Listen for changes |
| 33 | + |
| 34 | + ### Browser Support |
| 35 | + - Chrome/Chromium: ✅ Full support |
| 36 | + - Edge: ✅ Full support |
| 37 | + - Safari 14.1+: ⚠️ Partial (webkit prefix) |
| 38 | + - Firefox: ❌ Not supported (Web Speech API unavailable) |
0 commit comments