Skip to content

Commit

Permalink
Fix: stream_bert_vits2_infer lang error
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Nov 27, 2024
1 parent 4838262 commit a13f030
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manager/TTSManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ def stream_bert_vits2_infer(self, state, encode=True):
sampling_rate = model.sampling_rate
sentences_list = sentence_split(state["text"], state["segment_size"])

if state["lang"].lower() == "auto":
infer_func = model.infer_multilang
else:
if len(state["lang"]) == 1 and "auto" not in state["lang"]:
infer_func = model.infer
else:
infer_func = model.infer_multilang

for sentences in sentences_list:
state["text"] = sentences
Expand Down

0 comments on commit a13f030

Please sign in to comment.