/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/react-native-bluemix@1.4.5/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{NativeEventEmitter,NativeModules,Platform}from"react-native";let{RNTextToSpeech:RNTextToSpeech,RNSpeechToText:RNSpeechToText,RNToneAnalyzer:RNToneAnalyzer,RNNaturalLanguageUnderstanding:RNNaturalLanguageUnderstanding}=NativeModules;module.exports={TextToSpeech:{initialize:function(e,t){RNTextToSpeech.initialize(e,t)},synthesize:function(e,t){return RNTextToSpeech.synthesize(e,t)},getVoices:function(){return RNTextToSpeech.getVoices()}},SpeechToText:{speechToTextEmitter:new NativeEventEmitter(RNSpeechToText),initialize:function(e,t){RNSpeechToText.initialize(e,t)},startStreaming(e){this.subscription=this.speechToTextEmitter.addListener("StreamingText",(t=>e(null,t))),RNSpeechToText.startStreaming(e)},stopStreaming(){this.subscription.remove(),RNSpeechToText.stopStreaming()}},ToneAnalyzer:{tones:{emotion:"emotion",language:"language",social:"social"},initialize:function(e,t){RNToneAnalyzer.initialize(e,t)},getTone:function(e,t=["emotion","language","social"],n=!0,i){return RNToneAnalyzer.getTone(e)}},NaturalLanguageUnderstanding:{initialize:function(e,t){RNNaturalLanguageUnderstanding.initialize(e,t)},analyzeContent:function(e,t){return RNNaturalLanguageUnderstanding.analyzeContent(e,t).then((e=>"android"===Platform.OS?JSON.parse(e):e))}}};
//# sourceMappingURL=/sm/58a34a07286963811f118e03a0bf1b30e0ce1b4733dcde8f2e50c4e31f0bd38c.map