Skip to content

Commit dfcd6d0

Browse files
authored
Merge pull request #504 from liutaocode/patch-1
Update model.py
2 parents d8f00f4 + 18b9a8c commit dfcd6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cosyvoice/cli/model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def vc(self, source_speech_token, flow_prompt_speech_token, prompt_speech_feat,
230230
if self.llm_end_dict[this_uuid] is True and len(self.tts_speech_token_dict[this_uuid]) < token_hop_len + self.token_overlap_len:
231231
break
232232
# deal with remain tokens, make sure inference remain token len equals token_hop_len when cache_speech is not None
233-
this_tts_speech_token = torch.tensor(self.tts_speech_token_dict[this_uuid], dim=1).unsqueeze(dim=0)
233+
this_tts_speech_token = torch.tensor(self.tts_speech_token_dict[this_uuid]).unsqueeze(dim=0)
234234
this_tts_speech = self.token2wav(token=this_tts_speech_token,
235235
prompt_token=flow_prompt_speech_token,
236236
prompt_feat=prompt_speech_feat,

0 commit comments

Comments
 (0)