You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 14, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@
9
9
alt="chat on Discord"></a>
10
10
11
11
```sh
12
-
yarn add @react-native-voice/voice
12
+
yarn add @pedrol2b/react-native-voice
13
13
14
14
# or
15
15
16
-
npm i @react-native-voice/voice --save
16
+
npm i @pedrol2b/react-native-voice --save
17
17
```
18
18
19
19
Link the iOS package
@@ -24,25 +24,21 @@ npx pod-install
24
24
25
25
## Table of contents
26
26
27
-
-[Linking](#linking)
27
+
-[Table of contents](#table-of-contents)
28
28
-[Manually Link Android](#manually-link-android)
29
29
-[Manually Link iOS](#manually-link-ios)
30
-
-[Prebuild Plugin](#prebuild-plugin)
31
-
-[Usage](#usage)
30
+
-[Props](#props)
32
31
-[Example](#example)
33
-
-[API](#api)
34
-
-[Events](#events)
35
-
-[Permissions](#permissions)
32
+
-[Example](#example-1)
36
33
-[Android](#android)
37
34
-[iOS](#ios)
38
-
-[Contributors](#contributors)
39
35
40
36
<h2align="center">Linking</h2>
41
37
42
38
<palign="center">Manually or automatically link the NativeModule</p>
43
39
44
40
```sh
45
-
react-native link @react-native-voice/voice
41
+
react-native link @pedrol2b/react-native-voice
46
42
```
47
43
48
44
### Manually Link Android
@@ -52,7 +48,7 @@ react-native link @react-native-voice/voice
52
48
```gradle
53
49
...
54
50
include ':@react-native-voice_voice', ':app'
55
-
project(':@react-native-voice_voice').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-voice/voice/android')
51
+
project(':@react-native-voice_voice').projectDir = new File(rootProject.projectDir, '../node_modules/@pedrol2b/react-native-voice/android')
56
52
```
57
53
58
54
- In `android/app/build.gradle`
@@ -90,7 +86,7 @@ public class MainActivity extends Activity implements ReactApplication {
90
86
91
87
### Manually Link iOS
92
88
93
-
- Drag the Voice.xcodeproj from the @react-native-voice/voice/ios folder to the Libraries group on Xcode in your poject. [Manual linking](https://reactnative.dev/docs/linking-libraries-ios.html)
89
+
- Drag the Voice.xcodeproj from the @pedrol2b/react-native-voice/ios folder to the Libraries group on Xcode in your poject. [Manual linking](https://reactnative.dev/docs/linking-libraries-ios.html)
94
90
95
91
- Click on your main project file (the one that represents the .xcodeproj) select Build Phases and drag the static library, lib.Voice.a, from the Libraries/Voice.xcodeproj/Products folder to Link Binary With Libraries
96
92
@@ -103,7 +99,7 @@ After installing this npm package, add the [config plugin](https://docs.expo.io/
103
99
```json
104
100
{
105
101
"expo": {
106
-
"plugins": ["@react-native-voice/voice"]
102
+
"plugins": ["@pedrol2b/react-native-voice"]
107
103
}
108
104
}
109
105
```
@@ -123,7 +119,7 @@ The plugin provides props for extra customization. Every time you change the pro
123
119
{
124
120
"plugins": [
125
121
[
126
-
"@react-native-voice/voice",
122
+
"@pedrol2b/react-native-voice",
127
123
{
128
124
"microphonePermission": "CUSTOM: Allow $(PRODUCT_NAME) to access the microphone",
129
125
"speechRecognitionPermission": "CUSTOM: Allow $(PRODUCT_NAME) to securely recognize user speech"
@@ -140,7 +136,7 @@ The plugin provides props for extra customization. Every time you change the pro
140
136
### Example
141
137
142
138
```javascript
143
-
importVoicefrom'@react-native-voice/voice';
139
+
importVoicefrom'@pedrol2b/react-native-voice';
144
140
importReact, {Component} from'react';
145
141
146
142
classVoiceTestextendsComponent {
@@ -243,8 +239,8 @@ Need to include permissions for `NSMicrophoneUsageDescription` and `NSSpeechReco
243
239
244
240
Please see the documentation provided by ReactNative for this: [PermissionsAndroid](https://reactnative.dev/docs/permissionsandroid.html)
0 commit comments