react-native-davoice-tts 1.0.288 → 1.0.290

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.161" # Update to your package version
5
+ s.version = "1.0.163" # 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 .
@@ -1 +1 @@
1
- c849f3ae35d5ea18acb41b3414c74b15 tts-1.0.0.aar
1
+ 06d7b6c14dc91bee883e47d750ef993b tts-1.0.0.aar
@@ -1 +1 @@
1
- 5c751bba84db975c909fc1504ee8f20b69ff3534 tts-1.0.0.aar
1
+ bffdae963e5775c50c1e1f004dcf9a731a224567 tts-1.0.0.aar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-davoice-tts",
3
- "version": "1.0.288",
3
+ "version": "1.0.290",
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
@@ -185,7 +185,6 @@ class Speech {
185
185
  private lastLocale: string | null = null;
186
186
  private lastModel: string | null = null;
187
187
  private iosTtsOnly = false; // when true, use NativeTTS directly on iOS
188
- private androidTtsPlaybackOnly = false;
189
188
 
190
189
 
191
190
  private logCall(name: string, payload?: any) {
@@ -323,7 +322,6 @@ class Speech {
323
322
  console.log('[MODELDBG] initAllRemoteSTT.modelPath (resolved)=', modelPath);
324
323
  console.log('[MODELDBG] initAllRemoteSTT.modelExt (resolved)=', modelExt);
325
324
  await NativeTTS.initTTS({ model: modelPath, modelExt });
326
- this.androidTtsPlaybackOnly = false;
327
325
  await sleep(500);
328
326
  }
329
327
 
@@ -355,7 +353,6 @@ class Speech {
355
353
  throw new Error('Native TTS module missing initTTSPlaybackOnly()');
356
354
  }
357
355
  await NativeTTS.initTTSPlaybackOnly();
358
- this.androidTtsPlaybackOnly = true;
359
356
  await sleep(500);
360
357
  }
361
358
 
@@ -443,14 +440,12 @@ class Speech {
443
440
  const modelExt = this.resolveModelExt(opts.model);
444
441
  console.log('[MODELDBG] initAll.modelExt (resolved)=', modelExt);
445
442
  await NativeTTS.initTTS({ model: modelPath, modelExt });
446
- this.androidTtsPlaybackOnly = false;
447
443
  }
448
444
 
449
445
  async destroyAll() {
450
446
  this._cancelTtsWait('destroyAll');
451
447
  this.ttsChain = Promise.resolve();
452
448
  this.wavChain = Promise.resolve();
453
- this.androidTtsPlaybackOnly = false;
454
449
 
455
450
  // iOS unified
456
451
  if (Platform.OS === 'ios' && NativeSpeech?.destroyAll) {
@@ -718,7 +713,6 @@ class Speech {
718
713
  if (!cfg?.model) throw new Error("initTTS: missing 'model'");
719
714
  const modelPath = this.resolveModelToPath(cfg.model);
720
715
  this.lastModel = modelPath;
721
- this.androidTtsPlaybackOnly = false;
722
716
  return NativeTTS.initTTS({ model: modelPath });
723
717
  }
724
718