From e51a8f1f15435b83b7893210aa51f73082f7719c Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Fri, 9 Jul 2021 18:44:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E8=88=AC?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../abilityslice/TtsBaseAbilitySlice.java | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/speechutils/src/main/java/ee/ioc/phon/ohos/speechutils/abilityslice/TtsBaseAbilitySlice.java b/speechutils/src/main/java/ee/ioc/phon/ohos/speechutils/abilityslice/TtsBaseAbilitySlice.java index e04687d..e04cb9c 100644 --- a/speechutils/src/main/java/ee/ioc/phon/ohos/speechutils/abilityslice/TtsBaseAbilitySlice.java +++ b/speechutils/src/main/java/ee/ioc/phon/ohos/speechutils/abilityslice/TtsBaseAbilitySlice.java @@ -104,17 +104,10 @@ public abstract class TtsBaseAbilitySlice extends AbilitySlice implements TtsSho @Override public void onSpeechStart(String utteranceId) { HiLog.info(LABEL_LOG, "onSpeechStart..."); - if (timer == null && timerTask == null) { - timer = new Timer(); - timerTask = new TimerTask() { - public void run() { - handler.sendEvent(EVENT_MSG_TIME_COUNT); - } - }; - timer.schedule(timerTask, 0, Define.YIQIAN); - } + initTimer(); } + @Override public void onSpeechProgressChanged(String utteranceId, int progress) { } @@ -130,6 +123,21 @@ public abstract class TtsBaseAbilitySlice extends AbilitySlice implements TtsSho } }; + /** + * 初始化timer + */ + private void initTimer() { + if (timer == null && timerTask == null) { + timer = new Timer(); + timerTask = new TimerTask() { + public void run() { + handler.sendEvent(EVENT_MSG_TIME_COUNT); + } + }; + timer.schedule(timerTask, 0, Define.YIQIAN); + } + } + @Override protected void onStart(Intent intent) { super.onStart(intent); -- Gitee From dba0ee1d3765b925f3ee9105bc1e127cbb76ac21 Mon Sep 17 00:00:00 2001 From: wjt983049539 Date: Thu, 29 Jul 2021 15:29:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=89=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGLOG.md | 2 ++ README.md | 7 ++++--- build.gradle | 2 +- entry/build.gradle | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGLOG.md b/CHANGLOG.md index 10020de..b58461e 100644 --- a/CHANGLOG.md +++ b/CHANGLOG.md @@ -1,3 +1,5 @@ +## 1.0.0 +正式版 ## 0.0.2-SNAPSHOT ohos 第二个版本 * 更新sdk6 diff --git a/README.md b/README.md index 633ecd2..96c912a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ allprojects { repositories { maven { - url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + url 'https://s01.oss.sonatype.org/content/repositories/releases/' } } } @@ -31,7 +31,7 @@ 2.在entry模块的build.gradle文件中, ``` dependencies { - implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') + implementation('com.gitee.chinasoft_ohos:speechutils:1.0.0') ...... } ``` @@ -90,7 +90,8 @@ CloudTest代码测试无异常 病毒安全检测通过 -## 版本迭代- 0.0.2-SNAPSHOT +## 版本迭代 + 1.0.0 ## 版本和许可信息 ``` diff --git a/build.gradle b/build.gradle index a4bbee5..9d4eb5c 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ buildscript { allprojects { repositories { maven { - url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + url 'https://s01.oss.sonatype.org/content/repositories/releases/' } maven { url 'https://repo.huaweicloud.com/repository/maven/' diff --git a/entry/build.gradle b/entry/build.gradle index b1c7358..2e3df6f 100644 --- a/entry/build.gradle +++ b/entry/build.gradle @@ -18,7 +18,7 @@ ohos { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - implementation('com.gitee.chinasoft_ohos:speechutils:0.0.2-SNAPSHOT') + implementation('com.gitee.chinasoft_ohos:speechutils:1.0.0') testImplementation 'junit:junit:4.13' //本地依赖提示 // implementation project(path: ':speechutils') -- Gitee