Skip to content

Commit

Permalink
✨ add chattts txt_smp eos #133
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Aug 10, 2024
1 parent 02bf989 commit 854e477
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/core/models/tts/ChatTtsModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ def _gen():
prompt_suffix = " [Stts][Ptts][Stts][Ptts][Stts]"
prompt2 = f"{prompt_prefix}{prompt2}{prompt_suffix}"

# NOTE: 加这个的原因:
# https://github.com/lenML/ChatTTS-Forge/issues/133
if txt_smp and not txt_smp.endswith("。"):
txt_smp = txt_smp + "。"

sr = 24000

if not stream:
Expand Down

0 comments on commit 854e477

Please sign in to comment.