From d4fd5622fd5cd45ef40ad0f68866a10d6f84a8ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B1=9F=E6=B6=9B?= <983049539@qq.com> Date: Wed, 19 May 2021 14:09:35 +0800 Subject: [PATCH 1/3] update README.md. --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index f911801..17c6250 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,6 @@ - 项目移植状态: - 调用差异:使用鸿蒙api与源项目调用方式不一样 - 开发版本:sdk4,DevEco Studio2.1 beta2 -- 项目作者和维护人:王江涛 -- 联系方式:wangjiangtao003@chinasoftinc.com - 原项目Doc地址: ## 项目介绍 @@ -91,7 +89,5 @@ CloudTest代码测试无异常 火绒安全病毒安全检测通过 -测试员:李向涛 - ## 版本迭代 0.0.1-SNAPSHOT -- Gitee From be8504114c8b3c237d4a59ead92c1beead417755 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Wed, 19 May 2021 18:02:10 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 3 +++ entry/build.gradle | 14 ++------------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index e463f14..9bab9f2 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,9 @@ buildscript { allprojects { repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } maven { url 'https://repo.huaweicloud.com/repository/maven/' } diff --git a/entry/build.gradle b/entry/build.gradle index 5a1b0ce..112b6fc 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -1,17 +1,7 @@ apply plugin: 'com.huawei.ohos.hap' apply plugin: 'com.huawei.ohos.decctest' ohos { - signingConfigs { - debug { - storeFile file('D:\\wjt\\WJT\\wangjiangtao.p12') - storePassword '00000018304C0FE1E851C644B7B5B4CB1084E70D7D281D48D403195360687D412E7211FFC2DA6E38' - keyAlias = 'wjt' - keyPassword '00000018FAB8873634A0F7550832F9213107F884E2175083E361FEA57026A0F53EA77E4C2552457B' - signAlg = 'SHA256withECDSA' - profile file('D:\\wjt\\WJT\\speechutlsDebug.p7b') - certpath file('D:\\wjt\\WJT\\wangjiangtao.cer') - } - } + compileSdkVersion 5 defaultConfig { compatibleSdkVersion 5 @@ -29,7 +19,7 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation project(path: ':speechutils') + implementation('com.gitee.chinasoft_ohos:speechutils:0.0.1-SNAPSHOT') testImplementation 'junit:junit:4.13' ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' } -- Gitee From e46eea98ec8d74d7566701634e4dacddb52b099c Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Wed, 19 May 2021 18:05:30 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F+readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 17c6250..dd5a04e 100644 --- a/README.md +++ b/README.md @@ -21,18 +21,23 @@ ## 安装教程 -1. 在主项目entry中的grade文件依赖 -``` -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation project(path: ':speechutils') -} -``` - - -如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, - -并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 +1.在项目根目录下的build.gradle文件中, + ``` + allprojects { + repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } + } + } + ``` + 2.在entry模块的build.gradle文件中, + ``` + dependencies { + implementation('com.gitee.chinasoft_ohos:speechutils:0.0.1-SNAPSHOT') + ...... + } + ``` ## 用法 1.语音转文字功能 在功能AbilityASlice继承AsrBaseAbilitySlice,实现 showAsrResult(String info)方法 -- Gitee