Skip to content

Commit

Permalink
播报金额去除店老板文字
Browse files Browse the repository at this point in the history
  • Loading branch information
catchpig committed Jan 23, 2018
1 parent c5e2fa9 commit 55c9548
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 29 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/com/zhuazhu/voice/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activity_main);
VoicePlay voicePlay = VoicePlay.with(this);
voicePlay.play("56.23");
voicePlay.playSuccess();
voicePlay.playClose();
voicePlay.playDefeated();
voicePlay.playRefundSuccess();
// voicePlay.playSuccess();
// voicePlay.playClose();
// voicePlay.playDefeated();
// voicePlay.playRefundSuccess();
}
}
14 changes: 14 additions & 0 deletions moneybroadcast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven'

android {
compileSdkVersion 26
Expand All @@ -24,6 +25,19 @@ android {

}

uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://192.166.1.67:8081/repository/mejust-android-releases/") {
authentication(userName: "admin", password: "admin123")
}
pom.version = "1.0.0"
pom.artifactId = "mejust.moneybroadcast"
pom.groupId = "zhuazhu"
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

Expand Down
Binary file modified moneybroadcast/src/main/assets/sound/tts_success.mp3
Binary file not shown.
10 changes: 5 additions & 5 deletions moneybroadcast/src/main/java/zhuazhu/voice/VoiceBuilder.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package zhuazhu.voice;

/**
* @author 志尧
* @date on 2018-01-12 15:12
* @email [email protected]
* @describe 组合音频 实体类
* @ideas 开头 + 金额 + 单位
* 创建时间: 2017/12/26 16:47<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2017/12/26 16:47<br/>
* 描述: 组合音频 实体类(开头 + 金额 + 单位)
*/

public class VoiceBuilder {
Expand Down
10 changes: 5 additions & 5 deletions moneybroadcast/src/main/java/zhuazhu/voice/VoicePlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
import zhuazhu.voice.utils.FileUtils;

/**
* @author 志尧
* @date on 2018-01-12 15:09
* @email [email protected]
* @describe 音频播放
* @ideas
* 创建时间: 2017/12/26 16:47<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2017/12/26 16:47<br/>
* 描述: 语音播报
*/

public class VoicePlay {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import zhuazhu.voice.utils.MoneyUtils;

/**
* @author 志尧
* @date on 2018-01-12 15:25
* @email [email protected]
* @describe 音频组合
* @ideas
* 创建时间: 2017/12/26 16:47<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2017/12/26 16:47<br/>
* 描述: 语音组合
*/

public class VoiceTextTemplate {
Expand Down
10 changes: 5 additions & 5 deletions moneybroadcast/src/main/java/zhuazhu/voice/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import java.io.IOException;

/**
* @author 志尧
* @date on 2018-01-12 13:51
* @email [email protected]
* @describe 文件相关的工具类
* @ideas
* 创建时间: 2017/12/26 16:47<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2017/12/26 16:47<br/>
* 描述: 文件处理
*/
public class FileUtils {

Expand Down
10 changes: 5 additions & 5 deletions moneybroadcast/src/main/java/zhuazhu/voice/utils/MoneyUtils.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package zhuazhu.voice.utils;

/**
* @author 志尧
* @date on 2018-01-12 13:54
* @email [email protected]
* @describe 关于金钱的工具类
* @ideas
* 创建时间: 2017/12/26 16:47<br/>
* 创建人: 李涛<br/>
* 修改人: 李涛<br/>
* 修改时间: 2017/12/26 16:47<br/>
* 描述: 关于金钱的工具类
*/
public class MoneyUtils {

Expand Down

0 comments on commit 55c9548

Please sign in to comment.