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.
@@ -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.136" # Update to your package version
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 .
@@ -1 +1 @@
1
- 7686ba29355fc01a6c6f7faa16cbd58c tts-1.0.0.aar
1
+ 63d727e6d55dbc5154f4339f27cde247 tts-1.0.0.aar
@@ -1 +1 @@
1
- 373b9581501382fa52186f155bb38edfe5b16baf tts-1.0.0.aar
1
+ 9407940c8e4d0bf5ca3a35bdb319cb77926d1176 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.263",
3
+ "version": "1.0.265",
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
@@ -412,7 +412,11 @@ class Speech {
412
412
  // ---------- iOS-only: SpeechRecognitionLite pause/unpause ----------
413
413
  pauseSpeechRecognition(): Promise<void> {
414
414
  this.logCall('pauseSpeechRecognitionLite');
415
- if (Platform.OS !== 'ios') return Promise.resolve();
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
- if (Platform.OS !== 'ios') return Promise.resolve();
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');