Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haihang
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐丛奇
haihang
Commits
f9e5d661
Commit
f9e5d661
authored
Sep 11, 2018
by
chengxiuhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test main
parent
4c612990
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
EyeApplication.java
app/src/main/java/com/oo/eye/EyeApplication.java
+2
-0
BDttsUtils.java
library/baselibrary/src/main/java/com/app/baselibrary/commonUtil/BDttsUtils.java
+12
-4
No files found.
app/src/main/java/com/oo/eye/EyeApplication.java
View file @
f9e5d661
package
com
.
oo
.
eye
;
import
com.app.baselibrary.base.app.BaseApplication
;
import
com.app.baselibrary.commonUtil.BDttsUtils
;
import
com.app.baselibrary.commonUtil.LogUtil
;
import
com.oo.eye.db.DbManager
;
import
com.oo.seex.netlibrary.net.BaseApiConfig
;
...
...
@@ -24,5 +25,6 @@ public class EyeApplication extends BaseApplication {
LogUtil
.
e
(
json
);
}
});
BDttsUtils
.
getInstance
();
//初始化百度语音
}
}
library/baselibrary/src/main/java/com/app/baselibrary/commonUtil/BDttsUtils.java
View file @
f9e5d661
...
...
@@ -188,27 +188,35 @@ public class BDttsUtils {
* 释放资源
*/
public
void
release
()
{
this
.
mSpeechSynthesizer
.
release
();
if
(
this
!=
null
&&
mSpeechSynthesizer
!=
null
)
{
this
.
mSpeechSynthesizer
.
release
();
}
}
/**
* 停止正在执行的任务
*/
public
void
stop
()
{
this
.
mSpeechSynthesizer
.
stop
();
if
(
this
!=
null
&&
mSpeechSynthesizer
!=
null
)
{
this
.
mSpeechSynthesizer
.
stop
();
}
}
/**
* 暂停正在执行的任务
*/
public
void
pause
()
{
this
.
mSpeechSynthesizer
.
pause
();
if
(
this
!=
null
&&
mSpeechSynthesizer
!=
null
)
{
this
.
mSpeechSynthesizer
.
pause
();
}
}
/**
* 恢复暂停的任务
*/
public
void
resume
()
{
this
.
mSpeechSynthesizer
.
resume
();
if
(
this
!=
null
&&
mSpeechSynthesizer
!=
null
)
{
this
.
mSpeechSynthesizer
.
resume
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment