Skip to content

Commit

Permalink
Merge pull request #496 from FunAudioLLM/dev/lyuxiang.lx
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
aluminumbox authored Oct 16, 2024
2 parents 21ddaec + 6b7286e commit 5157baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosyvoice/cli/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def token2wav(self, token, prompt_token, prompt_feat, embedding, uuid, finalize=
if finalize is False:
self.mel_overlap_dict[uuid] = tts_mel[:, :, -self.mel_overlap_len:]
tts_mel = tts_mel[:, :, :-self.mel_overlap_len]
tts_speech, tts_source = self.hift.inference(mel=tts_mel, cache_source=hift_cache_source)
tts_speech, tts_source = self.hift.inference(speech_feat=tts_mel, cache_source=hift_cache_source)
if self.hift_cache_dict[uuid] is not None:
tts_speech = fade_in_out(tts_speech, self.hift_cache_dict[uuid]['speech'], self.speech_window)
self.hift_cache_dict[uuid] = {'mel': tts_mel[:, :, -self.mel_cache_len:],
Expand Down

0 comments on commit 5157baf

Please sign in to comment.