react-native-davoice-tts 1.0.263 → 1.0.265
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
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.138" # 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
|
+
63d727e6d55dbc5154f4339f27cde247 tts-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9407940c8e4d0bf5ca3a35bdb319cb77926d1176 tts-1.0.0.aar
|
package/package.json
CHANGED
package/speech/index.ts
CHANGED
|
@@ -412,7 +412,11 @@ class Speech {
|
|
|
412
412
|
// ---------- iOS-only: SpeechRecognitionLite pause/unpause ----------
|
|
413
413
|
pauseSpeechRecognition(): Promise<void> {
|
|
414
414
|
this.logCall('pauseSpeechRecognitionLite');
|
|
415
|
-
|
|
415
|
+
// ANDROID: route to pauseMicrophone()
|
|
416
|
+
if (Platform.OS === 'android') {
|
|
417
|
+
dbg('Android pauseSpeechRecognition -> pauseMicrophone()');
|
|
418
|
+
return this.pauseMicrophone();
|
|
419
|
+
}
|
|
416
420
|
|
|
417
421
|
if (!(NativeSpeech as any)?.pauseSpeechRecognitionLite) {
|
|
418
422
|
dbg('iOS pauseSpeechRecognitionLite not available on NativeSpeech');
|
|
@@ -433,7 +437,12 @@ class Speech {
|
|
|
433
437
|
|
|
434
438
|
unPauseSpeechRecognition(times: number): Promise<void> {
|
|
435
439
|
this.logCall('unPauseSpeechRecognitionLite', { times });
|
|
436
|
-
|
|
440
|
+
|
|
441
|
+
// ANDROID: route to unPauseMicrophone()
|
|
442
|
+
if (Platform.OS === 'android') {
|
|
443
|
+
dbg('Android unPauseSpeechRecognition -> unPauseMicrophone()');
|
|
444
|
+
return this.unPauseMicrophone();
|
|
445
|
+
}
|
|
437
446
|
|
|
438
447
|
if (!(NativeSpeech as any)?.unPauseSpeechRecognitionLite) {
|
|
439
448
|
dbg('iOS unPauseSpeechRecognitionLite(times) not available on NativeSpeech');
|