react-native-davoice-tts 1.0.282 → 1.0.284

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.
@@ -2,7 +2,7 @@ require 'json'
2
2
 
3
3
  Pod::Spec.new do |s|
4
4
  s.name = "TTSRNBridge"
5
- s.version = "1.0.155" # Update to your package version
5
+ s.version = "1.0.157" # Update to your package version
6
6
  s.summary = "TTS for React Native."
7
7
  s.description = <<-DESC
8
8
  A React Native module for tts .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-davoice-tts",
3
- "version": "1.0.282",
3
+ "version": "1.0.284",
4
4
  "description": "tts library for React Native",
5
5
  "main": "tts/index.js",
6
6
  "types": "tts/index.d.ts",
package/speech/index.ts CHANGED
@@ -329,9 +329,12 @@ class Speech {
329
329
 
330
330
  /**
331
331
  * ANDROID ONLY: Start remote STT and initialize TTS in playback-only mode (no model/ONNX init).
332
- * onboardingJsonPath is intentionally ignored on Android for now.
332
+ * Accepts the same argument shape as initAllRemoteSTT() for API compatibility.
333
+ * model/onboardingJsonPath are intentionally ignored on Android for now.
333
334
  */
334
- async initAllRemoteSTTAndTTS(_opts?: { onboardingJsonPath?: string }): Promise<void> {
335
+ async initAllRemoteSTTAndTTS(
336
+ _modelOrOpts?: ModelRef | { model: ModelRef; onboardingJsonPath?: string },
337
+ ): Promise<void> {
335
338
  if (Platform.OS !== 'android') {
336
339
  throw new Error('initAllRemoteSTTAndTTS is Android-only.');
337
340
  }
@@ -353,7 +356,7 @@ class Speech {
353
356
  }
354
357
  await NativeTTS.initTTSPlaybackOnly();
355
358
  this.androidTtsPlaybackOnly = true;
356
- await sleep(200);
359
+ await sleep(500);
357
360
  }
358
361
 
359
362
  dbgModel(label: string, model: any) {