Skip to content

Commit

Permalink
Update: stream_bert_vits2_infer
Browse files Browse the repository at this point in the history
  • Loading branch information
Artrajz committed Jan 11, 2025
1 parent 7943e2f commit 3a49dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/TTSManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ def bert_vits2_infer(self, state, encode=True):
return self.encode(sampling_rate, audio, state["format"]) if encode else audio

def stream_bert_vits2_infer(self, state, encode=True):
model = self.get_model(ModelType.BERT_VITS2, state["id"])
state["id"] = self.get_real_id(ModelType.BERT_VITS2, state["id"])
model = self.get_model(model_type=ModelType.BERT_VITS2, id=state["id"], speaker=state["speaker"])
state["id"] = self.get_real_id(model_type=ModelType.BERT_VITS2, id=state["id"], speaker=state["speaker"])

# 去除所有多余的空白字符
if state["text"] is not None:
Expand Down

0 comments on commit 3a49dab

Please sign in to comment.