/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@vietkidz/react-native-tts@1.5.1/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{NativeModules,NativeEventEmitter,Platform}from"react-native";const TextToSpeech=NativeModules.TextToSpeech;class Tts extends NativeEventEmitter{constructor(){super(TextToSpeech)}getInitStatus(){return"ios"===Platform.OS?Promise.resolve(!0):TextToSpeech.getInitStatus()}requestInstallEngine(){return"ios"===Platform.OS?Promise.resolve(!0):TextToSpeech.requestInstallEngine()}requestInstallData(){return"ios"===Platform.OS?Promise.resolve(!0):TextToSpeech.requestInstallData()}setDucking(e){return TextToSpeech.setDucking(e)}setDefaultVoice(e){return TextToSpeech.setDefaultVoice(e)}setDefaultRate(e,t){return TextToSpeech.setDefaultRate(e,!!t)}setDefaultPitch(e){return TextToSpeech.setDefaultPitch(e)}setDefaultLanguage(e){return TextToSpeech.setDefaultLanguage(e)}voices(){return TextToSpeech.voices()}speak(e,t={}){return"string"==typeof t?"ios"===Platform.OS?TextToSpeech.speak(e,t):TextToSpeech.speak(e,{}):"ios"===Platform.OS?TextToSpeech.speak(e,t.iosVoiceId):TextToSpeech.speak(e,t.androidParams||{})}stop(e){return"ios"===Platform.OS?TextToSpeech.stop(e):TextToSpeech.stop()}pause(e){return"ios"===Platform.OS?TextToSpeech.pause(e):null}resume(){return"ios"===Platform.OS?TextToSpeech.resume():null}addEventListener(e,t){this.addListener(e,t)}removeEventListener(e,t){this.removeListener(e,t)}}export default new Tts;
//# sourceMappingURL=/sm/28562dac99fb60643f0ef03f998501ad3d4eea2161ddb53990b3c10e5707e2dc.map