Initial commit
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
id="phonegap-plugin-speech-recognition"
|
||||
version="0.2.0">
|
||||
<name>SpeechRecognition</name>
|
||||
<description>Cordova Speech Recognition Plugin</description>
|
||||
<license>MIT</license>
|
||||
<keywords>cordova,speech,recognition</keywords>
|
||||
|
||||
<dependency id="cordova-plugin-compat" version="^1.0.0" />
|
||||
|
||||
<js-module src="www/SpeechRecognition.js" name="SpeechRecognition">
|
||||
<clobbers target="SpeechRecognition" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechRecognitionError.js" name="SpeechRecognitionError">
|
||||
<clobbers target="SpeechRecognitionError" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechRecognitionAlternative.js" name="SpeechRecognitionAlternative">
|
||||
<clobbers target="SpeechRecognitionAlternative" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechRecognitionResult.js" name="SpeechRecognitionResult">
|
||||
<clobbers target="SpeechRecognitionResult" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechRecognitionResultList.js" name="SpeechRecognitionResultList">
|
||||
<clobbers target="SpeechRecognitionResultList" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechRecognitionEvent.js" name="SpeechRecognitionEvent">
|
||||
<clobbers target="SpeechRecognitionEvent" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechGrammar.js" name="SpeechGrammar">
|
||||
<clobbers target="SpeechGrammar" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/SpeechGrammarList.js" name="SpeechGrammarList">
|
||||
<clobbers target="SpeechGrammarList" />
|
||||
</js-module>
|
||||
|
||||
<!-- android -->
|
||||
<platform name="android">
|
||||
<config-file target="res/xml/config.xml" parent="/*">
|
||||
<feature name="SpeechRecognition">
|
||||
<param name="android-package" value="org.apache.cordova.speech.SpeechRecognition"/>
|
||||
</feature>
|
||||
</config-file>
|
||||
<config-file target="AndroidManifest.xml" parent="/*">
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
</config-file>
|
||||
|
||||
<source-file src="src/android/SpeechRecognition.java" target-dir="src/org/apache/cordova/speech" />
|
||||
</platform>
|
||||
<platform name="ios">
|
||||
<config-file target="config.xml" parent="/*">
|
||||
<feature name="SpeechRecognition">
|
||||
<param name="ios-package" value="SpeechRecognition"/>
|
||||
</feature>
|
||||
</config-file>
|
||||
|
||||
<source-file src="src/ios/SpeechRecognition.m" />
|
||||
<source-file src="src/ios/libiSpeechSDK.a" framework="true" />
|
||||
|
||||
<header-file src="src/ios/SpeechRecognition.h" />
|
||||
<header-file src="src/ios/Headers/iSpeechSDK.h" />
|
||||
<header-file src="src/ios/Headers/ISSpeechRecognition.h" />
|
||||
<header-file src="src/ios/Headers/ISSpeechRecognitionLocales.h" />
|
||||
<header-file src="src/ios/Headers/ISSpeechRecognitionResult.h" />
|
||||
<header-file src="src/ios/Headers/ISSpeechSynthesis.h" />
|
||||
<header-file src="src/ios/Headers/ISSpeechSynthesisVoices.h" />
|
||||
|
||||
|
||||
<framework src="AudioToolbox.framework" />
|
||||
<framework src="SystemConfiguration.framework" />
|
||||
<framework src="Security.framework" />
|
||||
<framework src="CFNetwork.framework" />
|
||||
<framework src="Speech.framework" weak="true" />
|
||||
|
||||
<resource-file src="src/ios/iSpeechSDK.bundle" />
|
||||
<preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
|
||||
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
|
||||
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
|
||||
</config-file>
|
||||
<preference name="SPEECH_RECOGNITION_USAGE_DESCRIPTION" default=" " />
|
||||
<config-file target="*-Info.plist" parent="NSSpeechRecognitionUsageDescription">
|
||||
<string>$SPEECH_RECOGNITION_USAGE_DESCRIPTION</string>
|
||||
</config-file>
|
||||
</platform>
|
||||
|
||||
</plugin>
|
||||
Reference in New Issue
Block a user