react-native-davoice-tts 1.0.346 → 1.0.347

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.249" # 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 .
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.347",
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 {