@gmessier/nitro-speech 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
[](https://github.com/NotGeorgeMessier/nitro-speech/blob/main/LICENSE)
|
|
5
5
|
[](https://www.npmjs.com/package/@gmessier/nitro-speech)
|
|
6
6
|
|
|
7
|
-
> 🐛 [Report Bug](https://github.com/NotGeorgeMessier/nitro-speech/issues) | 💡 [Request Feature](https://github.com/NotGeorgeMessier/nitro-speech/issues)
|
|
8
|
-
|
|
9
7
|
> **⚠️ Work in Progress**
|
|
10
8
|
>
|
|
11
9
|
> This library is under active development. (Last version is stable)
|
|
@@ -23,8 +21,6 @@ Speech recognition for React Native, powered by [Nitro Modules](https://github.c
|
|
|
23
21
|
- [API Reference](#api-reference)
|
|
24
22
|
- [Requirements](#requirements)
|
|
25
23
|
- [Troubleshooting](#troubleshooting)
|
|
26
|
-
- [License](#license)
|
|
27
|
-
- [TODO](#todo)
|
|
28
24
|
|
|
29
25
|
## Installation
|
|
30
26
|
|
|
@@ -222,7 +218,7 @@ A React hook that provides lifecycle-aware access to the speech recognizer.
|
|
|
222
218
|
|
|
223
219
|
- `callbacks` (object):
|
|
224
220
|
- `onReadyForSpeech?: () => void` - Called when speech recognition starts
|
|
225
|
-
- `onResult?: (textBatches: string[]) => void` - Called
|
|
221
|
+
- `onResult?: (textBatches: string[]) => void` - Called every time when partial result is ready (array of text batches)
|
|
226
222
|
- `onRecordingStopped?: () => void` - Called when recording stops
|
|
227
223
|
- `onAutoFinishProgress?: (timeLeftMs: number) => void` - Called each second during auto-finish countdown
|
|
228
224
|
- `onError?: (message: string) => void` - Called when an error occurs
|
package/package.json
CHANGED