react-native-davoice-tts 1.0.346 → 1.0.348

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.248" # Update to your package version
5
+ s.version = "1.0.250" # 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
- bd97a4af4a770e3cc8f004ed838378bc tts-1.0.0.aar
1
+ e6b3ccca1d47c3f1670ade5be71b8413 tts-1.0.0.aar
@@ -1 +1 @@
1
- d6f35be0cf970cfafd23ef6ab3283b98ea8b9458 tts-1.0.0.aar
1
+ 9c3ff21938395477d8aec299af7d3ddef07db789 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.346",
3
+ "version": "1.0.348",
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
@@ -1272,7 +1272,9 @@ class Speech {
1272
1272
  onSpeechResults: (e: any) => this.handlers.onSpeechResults(e),
1273
1273
  onSpeechPartialResults: (e: any) => this.handlers.onSpeechPartialResults(e),
1274
1274
  onSpeechVolumeChanged: (e: any) => this.handlers.onSpeechVolumeChanged(e),
1275
- onNewSpeechWAV: (e: any) => this.handlers.onNewSpeechWAV(e),
1275
+ ...(Platform.OS === 'android'
1276
+ ? { onNewSpeechWAV: (e: any) => this.handlers.onNewSpeechWAV(e) }
1277
+ : {}),
1276
1278
  };
1277
1279
  (Object.keys(sttMap) as (keyof typeof sttMap)[]).forEach((name) => {
1278
1280
  try {