@@ -19,8 +19,8 @@ A powerful, easy-to-use React Native library for real-time speech-to-text conver
1919
2020## 📱 Demo
2121
22- | iOS | Android |
23- | --- | ------- |
22+ | iOS | Android |
23+ | --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- ------- |
2424| <video src =" https://github.com/user-attachments/assets/e48938ca-87a5-4343-ab76-cecc91b8380f " width =" 300 " > | <video src =" https://github.com/user-attachments/assets/2fbf41db-bf2d-4759-9181-0b8376a96dc1 " width =" 300 " > |
2525
2626## 📦 Installation
@@ -163,9 +163,11 @@ await start({ language: 'en-US' });
163163```
164164
165165** Options:**
166+
166167- ` language ` (string, required): Language code (e.g., "en-US", "fr-FR", "es-ES", "de-DE")
167168
168169** Throws:**
170+
169171- ` PERMISSION_DENIED ` : User denied permissions
170172- ` NOT_AVAILABLE ` : Speech recognition not available
171173- ` START_FAILED ` : Failed to start recognition
@@ -195,6 +197,7 @@ const granted = await requestPermissions({
195197```
196198
197199** Options (Android only):**
200+
198201- ` title ` (string, optional): Dialog title
199202- ` message ` (string, optional): Dialog message
200203- ` buttonNeutral ` (string, optional): Neutral button text
@@ -238,6 +241,7 @@ listener.remove();
238241```
239242
240243** SpeechResult:**
244+
241245- ` transcript ` (string): The recognized text
242246- ` confidence ` (number): Confidence score from 0.0 to 1.0
243247- ` isFinal ` (boolean): ` true ` for final result, ` false ` for partial
@@ -258,6 +262,7 @@ listener.remove();
258262```
259263
260264** SpeechError:**
265+
261266- ` code ` (string): Error code (see [ Error Codes] ( #error-codes ) )
262267- ` message ` (string): Human-readable error message
263268
@@ -341,10 +346,12 @@ Availability depends on the device and platform. Use `isAvailable()` to check.
341346### "Permission denied" error
342347
343348** iOS:**
349+
344350- Make sure you've added ` NSSpeechRecognitionUsageDescription ` and ` NSMicrophoneUsageDescription ` to your ` Info.plist `
345351- Check that the user granted permissions in Settings > Your App
346352
347353** Android:**
354+
348355- Ensure ` RECORD_AUDIO ` permission is in ` AndroidManifest.xml `
349356- Call ` requestPermissions() ` before ` start() `
350357
@@ -385,6 +392,7 @@ Availability depends on the device and platform. Use `isAvailable()` to check.
385392### Network errors
386393
387394Some speech recognition services require internet connectivity:
395+
388396- ** iOS** : On-device recognition available on iOS 13+ for some languages
389397- ** Android** : Depends on the device's speech recognition provider
390398
0 commit comments