forked from wx85105157/cordova-plugin-bdasr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
96 lines (82 loc) · 4.76 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version='1.0' encoding='utf-8'?>
<plugin xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-bdasr"
version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>bdasr</name>
<preference name="APIKEY"/>
<preference name="SECRETKEY"/>
<preference name="APPID"/>
<js-module name="bdasr" src="www/bdasr.js">
<clobbers target="cordova.plugins.bdasr"/>
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="bdasr">
<param name="ios-package" value="bdasr"/>
</feature>
<preference name="bdasrappid" value="$APPID"/>
<preference name="bdasrapikey" value="$APIKEY"/>
<preference name="bdasrsecretkey" value="$SECRETKEY"/>
</config-file>
<framework src="libc++.tbd" weak="true"/>
<framework src="libz.1.2.5.tbd" weak="true"/>
<framework src="AudioToolbox.framework" weak="true"/>
<framework src="AVFoundation.framework" weak="true"/>
<framework src="CFNetwork.framework" weak="true"/>
<framework src="CoreLocation.framework" weak="true"/>
<framework src="CoreTelephony.framework" weak="true"/>
<framework src="SystemConfiguration.framework" weak="true"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSASRDefines.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSASRParameters.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSEventManager.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSUploaderDefines.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSUploaderParameters.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSWakeupDefines.h"/>
<header-file src="src/ios/BDSClientHeaders/ASR/BDSWakeupParameters.h"/>
<resource-file src="src/ios/BDSClientLib/BDSClientResource.bundle"/>
<source-file framework="true" src="src/ios/BDSClientLib/libBaiduSpeechSDK.a"/>
<source-file src="src/ios/bdasr.m"/>
<config-file parent="NSMicrophoneUsageDescription" target="*-Info.plist">
<string>是否允许[美车驿站]使用您的麦克风?</string>
</config-file>
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="bdasr">
<param name="android-package" value="cn.hhjjj.bdasr.bdasr"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.baidu.speech.APP_ID"
android:value="$APPID"/>
<meta-data
android:name="com.baidu.speech.API_KEY"
android:value="$APIKEY"/>
<meta-data
android:name="com.baidu.speech.SECRET_KEY"
android:value="$SECRETKEY"/>
<service
android:name="com.baidu.speech.VoiceRecognitionService"
android:exported="false"/>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/libs/armeabi/libBaiduSpeechSDK.so" target-dir="libs/armeabi"/>
<source-file src="src/android/libs/armeabi/libvad.dnn.so" target-dir="libs/armeabi"/>
<source-file src="src/android/libs/x86_64/libBaiduSpeechSDK.so" target-dir="libs/x86_64"/>
<source-file src="src/android/libs/x86_64/libvad.dnn.so" target-dir="libs/x86_64"/>
<source-file src="src/android/libs/x86/libBaiduSpeechSDK.so" target-dir="libs/x86"/>
<source-file src="src/android/libs/x86/libvad.dnn.so" target-dir="libs/x86"/>
<source-file src="src/android/libs/arm64-v8a/libBaiduSpeechSDK.so" target-dir="libs/arm64-v8a"/>
<source-file src="src/android/libs/arm64-v8a/libvad.dnn.so" target-dir="libs/arm64-v8a"/>
<source-file src="src/android/libs/armeabi-v7a/libBaiduSpeechSDK.so" target-dir="libs/armeabi-v7a"/>
<source-file src="src/android/libs/armeabi-v7a/libvad.dnn.so" target-dir="libs/armeabi-v7a"/>
<source-file src="src/android/libs/bdasr_V3_20171108_9800a2a.jar" target-dir="libs"/>
<source-file src="src/android/bdasr.java" target-dir="src/cn/hhjjj/bdasr"/>
</platform>
</plugin>