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.
- package/TTSRNBridge.podspec +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
- package/package.json +1 -1
- package/speech/index.ts +0 -6
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DaVoiceSTT.swift.ofer +0 -2315
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DaVoiceSTT.swift1 +0 -2294
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DaVoiceSTT.swift1 +0 -2294
package/TTSRNBridge.podspec
CHANGED
|
@@ -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.
|
|
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 .
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
06d7b6c14dc91bee883e47d750ef993b tts-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bffdae963e5775c50c1e1f004dcf9a731a224567 tts-1.0.0.aar
|
package/package.json
CHANGED
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
|
|