react-native-davoice-tts 1.0.263 → 1.0.266
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.139" # 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
|
+
2482b131a50fdc73d3220722e629e09d tts-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d4c1e05a933a57accc449804735ef043b36539ea 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');
|
|
@@ -491,7 +500,7 @@ class Speech {
|
|
|
491
500
|
dbg('IOS [unPauseMicrophone] using NativeSpeech.unPauseMicrophoneAsync()');
|
|
492
501
|
try {
|
|
493
502
|
const r = await (NativeSpeech as any).unPauseMicrophoneAsync(1000);
|
|
494
|
-
if (r?.ok === false) dbgErr('
|
|
503
|
+
if (r?.ok === false) dbgErr('unPauseMicrophone failed', r?.reason);
|
|
495
504
|
dbg('IOS [unPauseMicrophone] NativeSpeech.unPauseMicrophoneAsync() DONE');
|
|
496
505
|
return;
|
|
497
506
|
} catch (e) {
|