Skip to content

Commit

Permalink
feat: tts 内容格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyueyi committed Jun 7, 2024
1 parent 37f0b6e commit ee15a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private void init() {
}

public TTSService getTts() {
if (System.currentTimeMillis() - lastVisit >= 60_000) {
if (System.currentTimeMillis() - lastVisit >= EXPIRE_TIME) {
if (ttsService != null) {
ttsService.close();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected SsmlConfig(TtsConfig ttsConfig) {
}

public SsmlConfig text(String text) {
text = text.replaceAll("《", "<").replaceAll("》", ">");
this.synthesisText = text;
return this;
}
Expand Down

0 comments on commit ee15a69

Please # to comment.