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
See [src/types.ts](./src/types.ts) for complete TypeScript definitions.
198
189
199
-
200
190
## Notes
201
191
202
192
### Model Loading
203
193
204
194
First initialization downloads and compiles ML models (~500MB total). This can take 20-30 seconds as Apple's Neural Engine compiles the models. Subsequent loads use cached compilations (~1 second).
205
195
206
-
### Intel Mac Support
207
-
208
-
Most ML models require Apple Silicon (ARM64). On Intel Macs:
209
-
- VAD works with CPU fallback
210
-
- ASR/Diarization may not work
211
-
- Use `isAppleSilicon()` to check before initializing
212
-
213
196
### TTS License
214
197
215
198
The TTS module uses ESpeakNG which is GPL licensed. Check license compatibility for your project.
216
199
217
-
## Architecture
218
-
219
-
This package supports both React Native architectures:
220
-
221
-
### New Architecture (Recommended)
222
-
-**TurboModules** for type-safe native module interface
223
-
-**JSI (JavaScript Interface)** for zero-copy audio buffer transfer
224
-
-**Codegen** for automatic type synchronization
225
-
226
-
Enable New Architecture in your app:
227
-
```bash
228
-
# iOS
229
-
cd ios && RCT_NEW_ARCH_ENABLED=1 pod install
230
-
```
231
-
232
-
### Legacy Architecture
233
-
- Falls back to Bridge-based modules automatically
234
-
- Audio data transferred as base64 strings
235
-
- Fully functional, slightly higher latency for large audio
236
-
237
-
### Zero-Copy API
238
-
239
-
When New Architecture is enabled, use `ArrayBuffer` methods for best performance:
0 commit comments