代码拉取完成,页面将自动刷新
打开cmd,输入以下指令:
keytool -genkey -v -keystore {FILENAME.keystore} -alias {ALIAS} -keyalg RSA -validity {DURATION}
* {FILENAME.keystore} 为生成的KeyStore的文件名
* {ALIAS} 为生成的KeyStore文件的别名
* {DURATION} 为该KeyStore文件的过期时间
android {
signingConfigs {
default_config {
keyAlias '你的keyAlias'
keyPassword '你的keyPassword'
storeFile file('你的keystore文件路径')
storePassword '你的storePassword'
}
}
...
}
需要申请appkey的SDK如下:
第三方SDK | appkey申请地址 |
---|---|
灵聚SDK(软件版) | http://dev.lingju.ai/ |
讯飞语音 | http://www.xfyun.cn/index.php/mycloud/app/create |
百度LBS | http://lbsyun.baidu.com/apiconsole/key/create |
新浪微博 | http://open.weibo.com/apps/new?sort=mobile |
腾讯QQ | http://open.qq.com/ |
微信 | https://open.weixin.qq.com/ |
喜马拉雅(听书) | http://open.ximalaya.com/ |
在app下的com.lingju.assistant.social.weibo.Constants类中修改对应常量参数的值。
/** 微博appkey */
String WEIBO_APPKEY = "你的appkey";
/** 微信 */
String WECHAT_APPID = "你的appid";
String WECHAT_AppSecret = "你的appSecret";
/** 腾讯qq*/
String TENCENT_APPID = "你的appid";
String TENCENT_AppSecret = "你的appSecret";
/**讯飞语音*/
String XUNFEI_APPID = "你的appid";
/**喜马拉雅*/
String XIMALAYA_APPKEY = "你的appkey";
String XIMALAYA_APPSECRET = "你的appSecret";
// 授权回调页,默认使用该URL(在开发平台创建应用时也要填入该URL)
String XIMALAYA_REDIRECT_URL = "https://api.ximalaya.com/openapi-collector-app/get_access_token";
/** 灵聚SDK*/
String LINGJU_APPKEY = "你的appkey";
<!-- 百度LBS -->
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="你的appkey"/>
<!--喜马拉雅SDK-->
<meta-data
android:name="app_key"
android:value="你的appkey"/>
由于讯飞语音应用申请的Appid和对应下载的SDK(包括jar和本地库)具有一致性,SDK不通用。开发者还需要在voicemodule/libs和voicemodule/src/main/jniLibs中替换自己的讯飞SDK。如下图所示:
另外,项目是使用了灵聚安卓版软件版(不允许在非手机环境下运行)SDK。如果开发者需要开发硬件产品,需要在灵聚开发者平台创建硬件类型应用,并下载硬件版SDK在voicemodule/libs中替换。如下图所示:
然后在AssistantService类的chatRobotInited( )方法的AndroidChatRobotBuilder初始化中加入“授权码”这一参数。
在灵聚开发者平台您创建的应用右侧的“接入”选项可查看授权码。
Copyright(c) 2017 灵聚科技
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。