{"version":3,"sources":["jsdelivr-header.js","/npm/native-speech@0.1.0/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,kBAAqB,eAC9B,MAAM,aAAE,cAAiB,cAEnB,OAAS,CACb,KAAA,CAAM,EAAS,GACb,IAAI,EAAU,CAAC,EACZ,EAAQ,cAAgB,QACzB,EAAQ,KAAO,EACf,EAAQ,SAAW,SAEnB,EAAU,EAEP,IACH,EAAW,SAAkB,GAAW,GAE1C,aAAa,MAAM,EAAS,EAC9B,EACA,IAAA,GACE,aAAa,MACf,kBAGa","file":"/npm/native-speech@0.1.0/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/native-speech@0.1.0/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { NativeModules } from 'react-native';\nconst { SpeechModule } = NativeModules;\n\nconst Speech = {\n  speak(context, callback) {\n    let options = {};\n    if(context.constructor === String) {\n      options.text = context;\n      options.language = 'zh-CH';\n    } else {\n      options = context;\n    }\n    if (!callback) {\n      callback = function callback(argument) {}\n    }\n    SpeechModule.speak(options, callback);\n  },\n  stop() {\n    SpeechModule.stop();\n  }\n}\n\nexport default Speech;\n"]}