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