Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
edc27c925c | ||
![]() |
9a9a266ae4 |
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
APP_KEY参数值为您在科大讯飞申请的appid
|
APP_KEY参数值为您在科大讯飞申请的appid
|
||||||
|
|
||||||
运行cordova plugin add https://gitee.com/shuto/cordova-plugin-IFlyspeech-master.git#wd --variable APP_KEY=${APP_KEY} --variable IOS_APP_KEY=${APP_KEY}
|
运行cordova plugin add https://gitee.com/shuto/cordova-plugin-IFlyspeech-master.git --variable APP_KEY=${APP_KEY}
|
||||||
|
|
||||||
## 调用方法
|
## 调用方法
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<name>cordova-plugin-xunfeiListenSpeaking</name>
|
<name>cordova-plugin-xunfeiListenSpeaking</name>
|
||||||
<preference name="APP_KEY" />
|
<preference name="APP_KEY" />
|
||||||
<preference name="IOS_APP_KEY" />
|
<preference name="CHANNEL" default="developer-default" />
|
||||||
<preference name="CHANNEL" default="developer-default" />
|
|
||||||
<engines>
|
<engines>
|
||||||
<engine name="cordova" version=">=3.0" />
|
<engine name="cordova" version=">=3.0" />
|
||||||
</engines>
|
</engines>
|
||||||
@ -108,7 +107,7 @@
|
|||||||
<framework src="Contacts.framework" />
|
<framework src="Contacts.framework" />
|
||||||
<framework src="src/ios/iflyMSC.framework" custom="true" />
|
<framework src="src/ios/iflyMSC.framework" custom="true" />
|
||||||
<config-file target="*IFlySpeechConfig.plist" parent="AppKey">
|
<config-file target="*IFlySpeechConfig.plist" parent="AppKey">
|
||||||
<string>$IOS_APP_KEY</string>
|
<string>$APP_KEY</string>
|
||||||
</config-file>
|
</config-file>
|
||||||
</platform>
|
</platform>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
NSLog(@"error: IFlySpeechConfig.plist not found");
|
NSLog(@"error: IFlySpeechConfig.plist not found");
|
||||||
assert(0);
|
assert(0);
|
||||||
}
|
}
|
||||||
NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
|
NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
|
||||||
self.appId = [plistData valueForKey:@"AppKey"];
|
self.appId = [plistData valueForKey:@"AppKey"];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,6 +43,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma mark - 语音录入
|
#pragma mark - 语音录入
|
||||||
- (void)startListening:(CDVInvokedUrlCommand*)command
|
- (void)startListening:(CDVInvokedUrlCommand*)command
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user